QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505395#5784. Ping Pong Ballsxiaowuc115 ✓702ms48628kbC++172.1kb2024-08-05 05:04:102024-08-05 05:04:11

詳細信息

Subtask #1:

score: 4
Accepted

Test #1:

score: 4
Accepted
time: 111ms
memory: 3600kb

input:

100
50 50
0 1
1 1
10 10
97 84
-1 -1
1 1
48 42
82 98
-5 -10
-7 -14
79 95
78 80
2 3
2 3
2 2
100 100
20 19
-1 -1
0 0
100 100
0 1
-1 0
99 0
100 100
0 -20
20 0
0 99
100 2
-20 0
0 -1
99 1
2 100
0 1
-20 0
0 1
2 2
1 0
0 1
1 1
100 2
-3 -2
3 -2
97 0
5 8
20 1
-17 -4
1 2
29 55
-3 7
4 6
9 24
49 67
5 12
14 7
43 4...

output:

Case #1: 820
Case #2: 84
Case #3: 36
Case #4: 26
Case #5: 4565
Case #6: 10000
Case #7: 25
Case #8: 10
Case #9: 99
Case #10: 1
Case #11: 1
Case #12: 1
Case #13: 14
Case #14: 2
Case #15: 1
Case #16: 5
Case #17: 17
Case #18: 3
Case #19: 9
Case #20: 1
Case #21: 16
Case #22: 10
Case #23: 2
Case #24: 8
Ca...

result:

ok 100 lines

Subtask #2:

score: 11
Accepted

Test #2:

score: 11
Accepted
time: 702ms
memory: 48628kb

input:

100
960217 938230
1 0
-1 0
480108 469115
795376 830706
-10 5
-14 7
795325 50
910934 909690
3 -2
3 -2
50 909639
1000000 1000000
20 19
-1 -1
0 0
1000000 1000000
1 0
0 1
0 0
1000000 1000000
0 20
-20 0
999999 0
50 1000000
0 -20
1 0
0 999999
1000000 50
-1 0
0 -20
999998 48
50 50
0 1
-1 0
24 25
1000000 50...

output:

Case #1: 960217
Case #2: 397651
Case #3: 303628
Case #4: 475000049810
Case #5: 1000000000000
Case #6: 2500000000
Case #7: 2500000
Case #8: 2999997
Case #9: 625
Case #10: 91
Case #11: 1000000000000
Case #12: 1000000000000
Case #13: 1
Case #14: 50
Case #15: 1
Case #16: 475000049810
Case #17: 102436418...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed