04 2018 档案
摘要:题目描述 There are N boxes arranged in a circle. The i-th box contains Ai stones.Determine whether it is possible to remove all the stones from the boxes
阅读全文
摘要:题目描述 A multi-digit column addition is a formula on adding two integers written like this: A multi-digit column addition is written on the blackboard,
阅读全文
摘要:题目描述 Aoki loves numerical sequences and trees.One day, Takahashi gave him an integer sequence of length N, a1,a2,…,aN, which made him want to construc
阅读全文
摘要:#include <iostream> #include <string> #include <cstring> #include <cstdio> using namespace std; const int maxn = 1000; struct bign{ int d[maxn], len;
阅读全文
摘要:题目描述 Snuke lives in another world, where slimes are real creatures and kept by some people. Slimes come in N colors. Those colors are conveniently num
阅读全文
摘要:题目描述 You and your friends have just returned from a beautiful vacation in the mountains of the Netherlands. When on vacation, it’s annoying to split t
阅读全文
摘要:【题目描述】 很久很久以前,有个王国。王国里有个国王。这一天,国王在给他的将军们分发奖金。将军们站成一排,依次编号为1~N,N为将军的个数。但是国王发奖的方法很可爱,每次发奖都是给连续的一些将军同样的金币。具体来说,国王共发了M次,其中第i次给Ai到Bi的人每人发了Ci枚金币。现在国王发完了钱,想让
阅读全文