随笔分类 -  模拟

摘要:原题链接:http://codeforces.com/gym/100203/attachments/download/1702/statements.pdf题解考虑到交换可以减少一次操作,那么可以的话就尽量交换,设问号的个数是z,上面是1下面是0的个数是x,反过来的是y,那么最后的答案就是z+min... 阅读全文
posted @ 2015-08-15 21:12 好地方bug 阅读(182) 评论(0) 推荐(0)
摘要:原题链接:http://codeforces.com/gym/100523/attachments/download/2798/20142015-ct-s02e07-codeforces-trainings-season-2-episode-7-en.pdf题意给你一堆三维点,问你他们是否共面题解模... 阅读全文
posted @ 2015-08-14 19:06 好地方bug 阅读(244) 评论(0) 推荐(0)
摘要:原题链接:http://acm.timus.ru/problem.aspx?space=1&num=17801780. Gray CodeTime limit: 0.5 secondMemory limit: 64 MBDenis, Vanya and Fedya gathered at their... 阅读全文
posted @ 2015-08-13 18:51 好地方bug 阅读(219) 评论(0) 推荐(0)
摘要:题目地址:http://acm.hdu.edu.cn/showproblem.php?pid=3836Equivalent SetsTime Limit: 12000/4000 MS (Java/Others)Memory Limit: 104857/104857 K (Java/Others)To... 阅读全文
posted @ 2015-08-09 15:34 好地方bug 阅读(211) 评论(0) 推荐(0)
摘要:原题地址:http://codeforces.com/gym/100286/attachments/download/2013/20082009-acmicpc-northeastern-european-regional-contest-neerc-08-en.pdf此题题意是给你一个单对单密文,... 阅读全文
posted @ 2015-08-08 21:52 好地方bug 阅读(376) 评论(0) 推荐(0)
摘要:原题地址:http://codeforces.com/gym/100286/attachments/download/2013/20082009-acmicpc-northeastern-european-regional-contest-neerc-08-en.pdf题意大概就是让你把写在一块的变... 阅读全文
posted @ 2015-08-08 21:18 好地方bug 阅读(373) 评论(0) 推荐(0)
摘要:Harry Potter has n mixtures in front of him, arranged in a row. Each mixture has one of 100 different colors (colors have numbers from 0 to 99).He wan... 阅读全文
posted @ 2015-08-07 22:05 好地方bug 阅读(243) 评论(0) 推荐(0)
摘要:首先感谢刘汝佳所著的《算法竞赛入门经典》。众所周知,C++中储存能力最大的unsigned long long 也是有着一个上限,如果我们想计算非常大的整数时,就不知所措了,所以,我写了一个高精度类,允许大整数的四则运算这个类利用字符串进行输入输出,并利用数组进行储存与处理,通过模拟四则运算,可以计... 阅读全文
posted @ 2014-12-20 00:51 好地方bug 阅读(4230) 评论(0) 推荐(1)
摘要:原题链接:http://acm.hdu.edu.cn/showproblem.php?pid=4770Lights Against DudelyTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others... 阅读全文
posted @ 2014-11-22 18:13 好地方bug 阅读(196) 评论(0) 推荐(0)
摘要:原题地址:http://acm.uestc.edu.cn/#/problem/show/327The new operating system BerOS has a nice feature. It is possible to use any number of characters/as a ... 阅读全文
posted @ 2014-04-18 19:39 好地方bug 阅读(183) 评论(0) 推荐(0)
摘要:8球是一种台球竞赛的规则。台面上有7个红球、7个黄球以及一个黑球,当然还有一个白球。对于本题,我们使用如下的简化规则:红、黄两名选手轮流用白球击打各自颜色的球,如果将该颜色的7个球全部打进,则这名选手可以打黑球,如果打进则算他胜。如果在打进自己颜色的所有球之前就把黑球打进,则算输。如果选手不慎打进了... 阅读全文
posted @ 2014-04-18 16:16 好地方bug 阅读(308) 评论(0) 推荐(0)