最新 最热

【HDU - 4927】Series 1

[sum_{i=0}^{n-1} {(-1)^{i}C_n^{i} A_{n-i}} ]

2020-06-02
1

【 HDU1081 】 To The Max (最大子矩阵和)

Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1 x 1 or greater located within the whole a...

2020-06-02
1

【CodeForces 504A】Misha and Forest

有n个点,代号分别为0到n-1,然后第i个点有di个相连点,与i 相连的点的XOR sum 为si,求所有的边。

2020-06-02
0

【CodeForces 621A】Wet Shark and Odd and Even

Today, Wet Shark is given n integers. Using any of these integers no more than once, Wet Shark wants to get maximum possible even (divisible by 2) sum. Please, ...

2020-06-02
1

【CodeForces 618B】Guess the Permutation

有个1到n的一个全排列,告诉你第i个数和全部n个数相比的较小数是多少,和自己相比时为0,于是有个主对角线为0的矩阵,求原数列

sum
2020-06-02
0

【AtCoder010】A - Addition(奇偶)

因为奇偶相同的两个数之和一定是偶数,所以YES->sum是偶数。 sum是偶数,那么一定是偶数个奇数加上任意个偶数,偶数个奇数两两合并一下就变成了偶数,n个偶数一定可以通过n-1次替代变成1个数。因此sum是偶数->YES。...

sum
2020-06-02
0

【USACO 2.3】Zero Sum(dfs)

按字典序输出所有在123..n之间插入'+','-',' '结果为0的表达式。.http://train.usaco.org/usacoprob2?a=jUh88pMwCSQ&S=zerosum/

sum
2020-06-02
0

of baskets he can fill completely!Help Phoenix determine the maximum number

Problem Description Phoenix is picking berries in his backyard. There are n shrubs, and each shrub has ai red berries and bi blue berries.

2020-06-01
1

【POJ 3176】Cow Bowling(DP)

The cows don't use actual bowling balls when they go bowling. They each take a number (in the range 0..99), though, and line up in a standard bowling-pin-like t...

2020-05-31
1

【CSU 1556】Pseudoprime numbers

Jerry is caught by Tom. He was penned up in one room with a door, which only can be opened by its code. The code is the answer of the sum of the sequence of num...

2020-05-31
1