随笔分类 - Codeforces
摘要:D. Once Again...You are given an array of positive integersa1, a2, ..., an × Tof lengthn × T. We know that for ...
阅读全文
摘要:C. GCD Tabletime limit per test2 secondsThe GCD tableGof sizen × nfor an array of positive integersaof lengthnis defined by fo...
阅读全文
摘要:D. Three LogosThree companies decided to order a billboard with pictures of their logos. A billboard is a bigsquareboard. A l...
阅读全文
摘要:D. Painting The WallUser ainta decided to paint a wall. The wall consists ofn2tiles, that are arranged in ann ×...
阅读全文
摘要:D. "Or" Game time limit per test 2 se...
阅读全文
摘要:C. A Problem about Polyline time limit per test ...
阅读全文
摘要:B. Finding Team Member time limit per test ...
阅读全文
摘要:B. Mashmokh and ACM time limit per test ...
阅读全文
摘要:B. Modulo Sum time limit per test ...
阅读全文
摘要:C. Vasya and Petya's Game time limit per test ...
阅读全文
摘要:A. Bear and Elections time limit per test1...
阅读全文
摘要:B. Bear and Three Musketeers time limit per test2 seconds ...
阅读全文
摘要:C. Bear and Poker time limit per test2 seconds memory limit per t...
阅读全文
摘要:C. George and JobThe new ITone 6 has been released recently and George got really keen to buy it. Unfortunately, he didn't have...
阅读全文
摘要:题意:给出一棵树,每个节点都被标记了黑或白色,要求把这棵树的其中k条变切换,划分成k+1棵子树,每颗子树必须有1个黑色节点,求有多少种划分方法。题解:树形dpdp[x][0]表示是以x为根的树形成一块不含黑色点的方案数dp[x][1]表示是以x为根的树形成一块含一个黑色点方案数//зїеп:1085...
阅读全文
摘要:Problem E: Reliable NetsYou’re in charge of designing a campus network between buildings and are very worried about itsreliability and its cost. So, y...
阅读全文
摘要:Problem H: Two EndsIn the two-player game “Two Ends”, an even number of cards is laid out in a row. On each card, faceup, is written a positive intege...
阅读全文
摘要:G -Good elementsTime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=87954#problem/GDescriptionYou are give...
阅读全文
摘要:I -I WINTime Limit: 2 SecMemory Limit: 256 MB题目连接http://acm.hust.edu.cn/vjudge/contest/view.action?cid=87954#problem/IDescriptionGiven ann × mrectangu...
阅读全文
摘要:C. ReplacementTime Limit: 20 SecMemory Limit: 256 MB题目连接http://codeforces.com/contest/570/problem/CDescriptionDaniel has a strings, consisting of lowe...
阅读全文

浙公网安备 33010602011771号