随笔分类 - The 15th Zhejiang University Programming Contest
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3862题意:给你2*n个点,然后是n组数组 a b 表示点a和点b是用火柴连起来的。问你有没有可能每次交换2个点,最后所有火柴都不相交。交换的次数在n+10次以内。如...
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3867题意:跟炉石游戏里的规则也差不多。给你两个小兵 有生命和攻击,问你第一个去攻击第二个的结果。 1 #include 2 #include 3 #includ...
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3860水题,问给出的数组中唯一不一样的那个是多少。 1 #include 2 #include 3 #include 4 #include 5 #includ...
阅读全文
摘要:题目链接:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3861题意:给出一组数,要求这组数在解锁的界面可能的滑动序列。思路:按照是否能够直接到达建图,如1可以直接到2,但是1不能直接到3,因为中间必须经过一个2。要注意的假...
阅读全文
摘要:Cylinder CandyTime Limit:2 Seconds Memory Limit:65536 KB Special JudgeEdward the confectioner is making a new batch of chocolate covered candy. Each c...
阅读全文