![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Codeforces
文章平均质量分 50
Vegetables_chicken
这个作者很懒,什么都没留下…
展开
-
Codeforces Round #693E Problem 1472E
Codeforces Round #693E / Problem 1472E1.原题链接:https://codeforces.com/problemset/problem/1472/E2.题意:多组输入。对于每组数据,输入一个n,表示有n个方块,接下来n行输入方块的长和宽。对于每个方块,询问是否存在某个方块的长和宽都小于该方块,注意,方块可以旋转,使长宽互换,存在则输出任意一块的id ,不存在则输出-13.解题思路:小技巧,为了解决长宽互换的问题,我们在输入时,使更小的值为长,更大的值为宽原创 2021-01-18 19:22:36 · 124 阅读 · 0 评论 -
codeforces Round 592C/1244C
题意:给四个数字:N,P,W,D(1<=n<=1e12,1<=d<w<=1e5,0<=p<=1e17)求是否存在符合条件的x,y,z:x+y+z=nxw+yd=p解题思路:我们暂且把xw+yd叫做式子1我们暂且把x+y叫做式子2我们从小到大枚举y,枚举范围[0,w],正好w<1e5,时间复杂度够。为什么从小到大枚举y?因为式子2的...原创 2019-10-15 20:48:37 · 177 阅读 · 0 评论 -
Codefoces1011B
Codeforce Round #499/B Coderforces1011B原题:题意:解题思路:代码:原题:B. Planning The Expeditiontime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputNatasha is...原创 2019-03-03 19:06:30 · 245 阅读 · 0 评论 -
codeforces 1175C
原题:C. Electrificationtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAt first, there was a legend related to the name of the problem, but no...原创 2019-06-06 23:47:16 · 556 阅读 · 0 评论