QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505508#5914. Falling Diamondsxiaowuc142 ✓30ms3788kbC++172.9kb2024-08-05 05:49:572024-08-05 05:49:58

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 14
Accepted

Test #1:

score: 14
Accepted
time: 0ms
memory: 3788kb

input:

100
12 2 0
3 -1 1
6 2 0
1 -2 0
15 1 3
11 -2 0
18 1594 0
14 2 2
7 0 0
20 8378 0
5 2 0
19 -3 3
8 6729 8897
16 -2036 0
5 0 2
19 -2 4
17 -2 0
11 -3 1
1 2 0
9 0 2058
6 0 2
8 0 0
1 0 2
6 -2 0
17 2 2
20 0 4
20 -4 2
10 -1 3
6 2 0
4 -686 0
15 9884 4748
19 0 4
17 0 0
4 0 0
15 0 4
7 2 0
5 0 2
7 265 9277
15 0 4...

output:

Case #1: 1
Case #2: 0.25000000000000000
Case #3: 1
Case #4: 0
Case #5: 1
Case #6: 1
Case #7: 0
Case #8: 1.00000000000000000
Case #9: 1
Case #10: 0
Case #11: 1.00000000000000000
Case #12: 0.06250000000000000
Case #13: 0
Case #14: 0
Case #15: 0.00000000000000000
Case #16: 0.00000000000000000
Case #17:...

result:

ok correct! (100 test cases)

Subtask #2:

score: 28
Accepted

Test #2:

score: 28
Accepted
time: 30ms
memory: 3740kb

input:

100
994903 -1410 0
216415 -10000 10000
9729 0 140
344476 830 0
240472 -694 0
988094 5473 715
970921 10000 10000
992898 -75 1211
760374 -10000 8290
92234 0 430
6 2 0
245786 -393 307
483518 -158 824
674606 1162 0
1000000 8520 0
4559 0 96
672200 -430 728
177309 0 596
124749 0 500
460023 464 494
18 -5 1...

output:

Case #1: 0.99999999999999989
Case #2: 0
Case #3: 0
Case #4: 0.99999999999999989
Case #5: 0.50000000000000000
Case #6: 0
Case #7: 0
Case #8: 1
Case #9: 0
Case #10: 0
Case #11: 1
Case #12: 1.00000000000000022
Case #13: 1.00000000000000044
Case #14: 1.00000000000000000
Case #15: 0
Case #16: 0
Case #17:...

result:

ok correct! (100 test cases)

Extra Test:

score: 0
Extra Test Passed