ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1120. Sum of Sequential Numbers

Pavel Nikolov WA #2 (Tests for comparison) [3] // Problem 1120. Sum of Sequential Numbers 19 Feb 2008 03:17
Hi,
I would be grateful if somebody share his/her outputs for the following inputs so I can compare the results with these of my program:

1
1 1

2
2 1

3
1 2

4
4 1

5
2 2

6
1 3

7
3 2

8
8 1

9
2 3

10
1 4

11
5 2

12
3 3

16
16 1

500
59 8

2^x
2^x 1

1000000000
26263 25600
Pavel Nikolov Re: WA #2 (Tests for comparison) [1] // Problem 1120. Sum of Sequential Numbers 19 Feb 2008 03:39
999999999
163837 5994

125
8 10

25
3 5

72
4 9

890
35 20

999
24 27

50
8 5

70
7 7

80
14 5
i think for 999
ans:  9 37
500
ans:  8 25;
but thank you very much for your testts, i found my bug.
500
59 8
why?
...., у выводимой пары максимально значение P.
500
8 25  - 25>8