随笔分类 - 其他 前缀和
摘要:E. Arson In Berland Forest The Berland Forest can be represented as an infinite cell plane. Every cell contains a tree. That is, contained before the
阅读全文
摘要:E. Rock Is Push You are at the top left cell (1,1) of an n×m labyrinth. Your goal is to get to the bottom right cell (n,m). You can only move right or
阅读全文
摘要:B. Alyona and a tree 题目连接: http://codeforces.com/contest/739/problem/B Description Alyona has a tree with n vertices. The root of the tree is the vert
阅读全文
摘要:B. Nanami's Digital Board 题目连接: http://www.codeforces.com/contest/434/problem/B Description Nanami is an expert at playing games. This day, Nanami's g
阅读全文
摘要:拍照 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5714 Description 小明在旅游的路上看到了一条美丽的河,河上有许多船只,有的船只向左航行,有的船只向右航行。小明希望拍下这一美丽的风景,并且把尽可能多的船只都完整地拍到一张照片中。 小
阅读全文
摘要:Candy Distribution 题目连接: http://acm.hdu.edu.cn/showproblem.php?pid=5291 Description WY has n kind of candy, number 1 N, The i th kind of candy has ai.
阅读全文
摘要:B. Alice, Bob, Two Teams 题目连接: http://www.codeforces.com/contest/632/problem/B Description Alice and Bob are playing a game. The game involves splitti
阅读全文
摘要:B. Guess That Car! 题目连接: http://codeforces.com/contest/201/problem/B Description A widely known among some people Belarusian sport programmer Yura pos
阅读全文
摘要:<center C. New Year and Domino</center 题目连接:http://www.codeforces.com/contest/611/problem/C DescriptionThey say "years are like dominoes, tumbling o...
阅读全文
摘要:<center B. Hamming Distance Sum</center 题目连接:http://www.codeforces.com/contest/608/problem/A DescriptionGenos needs your help. He was asked to solve...
阅读全文
摘要:昊昊爱运动Time Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.uestc.edu.cn/#/problem/show/1256Description昊昊喜欢运动他N天内会参加M种运动(每种运动用一个[1,m]的整数表示)舍友有Q个问题问昊昊第l天...
阅读全文
摘要:A. Greg and ArrayTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/295/problem/ADescriptionGreg has an arraya = a1, a2, ..., ana...
阅读全文
摘要:B. Laurenty and ShopTime Limit: 1 Sec Memory Limit: 256 MB题目连接http://codeforces.com/contest/586/problem/BDescriptionA little boy Laurenty has been pla...
阅读全文
摘要:A. Nano alarm-clocksTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/gym/100637/problem/ADescriptionAn old watchmaker hasnstopped nano ...
阅读全文