摘要:
题目链接:http://codeforces.com/contest/611/problem/C 解题思路: 分别对矩阵横竖遍历,满足条件则加1,不满足则不变,先将整个矩阵都标记完,然后只要输出起点和终点数值的差值就行。有点动态规划的感觉。 阅读全文
posted @ 2017-07-06 19:54
冥想选手
阅读(141)
评论(0)
推荐(0)
摘要:
There are N jobs to be finished. It takes a robot 1 hour to finish one job. At the beginning you have only one robot. Luckily a robot may build more r 阅读全文
posted @ 2017-07-06 16:33
冥想选手
阅读(192)
评论(0)
推荐(0)
摘要:
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
冥想选手
阅读(134)
评论(0)
推荐(0)
摘要:
题目链接:http://codeforces.com/problemset/problem/611/B 解题思路: 直接暴力推出所有符合条件的。 由进制转换可以知道,二进制只有1个0也就是十进制减去前面任意一个2的次方 然后脑残一样的用了位运算,死都无法表示64位,只能32位,还以为电脑出问题了。。 阅读全文
posted @ 2017-07-06 16:19
冥想选手
阅读(181)
评论(0)
推荐(0)
摘要:
题目链接:http://codeforces.com/contest/610/problem/C 解题思路: 将后一个矩阵拆分为四个前一状态矩阵,其中三个与前一状态相同,剩下一个直接取反就行。还有很多种取法,这种比较方便就是。 实现代码: 阅读全文
posted @ 2017-07-06 14:39
冥想选手
阅读(184)
评论(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
冥想选手
阅读(354)
评论(0)
推荐(0)
摘要:
C. Load Balancing time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output C. Load Balancing time 阅读全文
posted @ 2017-07-06 00:01
冥想选手
阅读(218)
评论(0)
推荐(0)

浙公网安备 33010602011771号