随笔分类 -  基础:模拟

摘要:You have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dict 阅读全文
posted @ 2017-07-06 16:28 冥想选手 阅读(138) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/problemset/problem/611/B 解题思路: 直接暴力推出所有符合条件的。 由进制转换可以知道,二进制只有1个0也就是十进制减去前面任意一个2的次方 然后脑残一样的用了位运算,死都无法表示64位,只能32位,还以为电脑出问题了。。 阅读全文
posted @ 2017-07-06 16:19 冥想选手 阅读(183) 评论(0) 推荐(0)
摘要:题目链接:http://codeforces.com/contest/610/problem/C 解题思路: 将后一个矩阵拆分为四个前一状态矩阵,其中三个与前一状态相同,剩下一个直接取反就行。还有很多种取法,这种比较方便就是。 实现代码: 阅读全文
posted @ 2017-07-06 14:39 冥想选手 阅读(187) 评论(0) 推荐(0)
摘要:B. Vika and Squares time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output B. Vika and Squares 阅读全文
posted @ 2017-07-06 11:40 冥想选手 阅读(358) 评论(0) 推荐(0)
摘要:B. Arpa’s obvious problem and Mehrdad’s terrible solution time limit per test 1 second memory limit per test 256 megabytes input standard input output 阅读全文
posted @ 2017-07-04 14:25 冥想选手 阅读(143) 评论(0) 推荐(0)
摘要:Solve the equation:p ∗ e ^−x + q ∗ sin(x) + r ∗ cos(x) + s ∗ tan(x) + t ∗ x ^2 + u = 02 + u = 0where 0 ≤ x ≤ 1.InputInput consists of multiple test ca 阅读全文
posted @ 2017-07-03 19:19 冥想选手 阅读(162) 评论(0) 推荐(0)
摘要:A palindrome is a word, number, or phrase that reads the same forwards as backwards. For example,the name “anna” is a palindrome. Numbers can also be 阅读全文
posted @ 2017-07-03 19:05 冥想选手 阅读(175) 评论(0) 推荐(0)
摘要:It has been said that a watch that is stopped keeps better time than one that loses 1 second per day.The one that is stopped reads the correct time tw 阅读全文
posted @ 2017-07-03 17:35 冥想选手 阅读(164) 评论(0) 推荐(0)
摘要:Ilya is a frontman of the most famous rock band on Earth. Band decided to make the most awesome music video ever for their new single. In that music v 阅读全文
posted @ 2017-06-01 22:16 冥想选手 阅读(303) 评论(0) 推荐(0)