题意:Little Petya likes numbers a lot. He found that number 123 in base 16 consists of two digits: the first is 7 and the second is 11. So the sum of di...
分类:
其他好文 时间:
2015-03-06 14:04:11
阅读次数:
120
点击打开链接
C. Sequence
time limit per test
1 second
memory limit per test
64 megabytes
input
standard input
output
standard output
Little Petya likes to p...
分类:
编程语言 时间:
2015-02-05 13:44:14
阅读次数:
267
Description描述Petya is well-known with his famous cabbage patties. Petya's birthday will come very soon, and he wants to invite as many guests as possi...
分类:
其他好文 时间:
2015-01-30 19:08:22
阅读次数:
206
1627. Join
Time limit: 4.0 second
Memory limit: 64 MB
Businessman Petya recently bought a new house. This house has one floor with
n × m square rooms, placed in rectangular lattice. Some roo...
分类:
其他好文 时间:
2015-01-30 09:16:22
阅读次数:
166
D. Tennis Game
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Petya and Gena love playing table tennis. A ...
分类:
编程语言 时间:
2014-12-20 23:29:19
阅读次数:
285
Petya and PipesTime Limit: 1000msMemory Limit: 262144KBThis problem will be judged onCodeForces. Original ID:362E64-bit integer IO format:%I64d Java c...
分类:
其他好文 时间:
2014-10-22 00:40:20
阅读次数:
218
As you know, all the kids in Berland love playing with cubes. Little Petya has n towers consisting of cubes of the same size. Tower with number i consists
of ai cubes
stacked one on top of the oth...
分类:
其他好文 时间:
2014-10-20 23:23:25
阅读次数:
282
题目链接:点击打开链接
论科学暴力的姿势重要性。。
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define ll int
#define N 100010
#define M 100010
vectorG[N], g...
分类:
其他好文 时间:
2014-09-05 16:09:51
阅读次数:
210
C. Petya and SpidersLittle Petya loves training spiders. Petya has a boardn?×?min size. Each cell of the board initially has a spider sitting on it. A...
分类:
其他好文 时间:
2014-08-17 01:04:31
阅读次数:
245
??
Description
Petya has k matches, placed in n matchboxes lying in a line from left to right.
We know that k is divisible by n. Petya wants all boxes to have the same number of matches in...
分类:
其他好文 时间:
2014-07-17 20:35:53
阅读次数:
249