QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505476#5866. Perfect Harmonyxiaowuc143 ✓583ms3848kbC++171.9kb2024-08-05 05:37:552024-08-05 05:37:55

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 0ms
memory: 3560kb

input:

40
3 2 100
3 5 7
4 8 16
1 20 5 2
7 5 10000
9942 9762 9822 9978 9714 9678 9726
4 2 10000
3 17 4 49
10 8331 9997
238 833 34 2 119 98 49 7 17 14
5 3299 8227
4863 6630 5752 498 4148
5 5899 7578
4808 3143 8259 9828 6133
5 3477 3514
2755 1104 6009 8970 3195
5 5795 6372
2431 3458 3070 4892 9336
2 5001 1000...

output:

Case #1: NO
Case #2: 10
Case #3: 6
Case #4: 9996
Case #5: 9996
Case #6: NO
Case #7: NO
Case #8: NO
Case #9: NO
Case #10: 10000
Case #11: NO
Case #12: NO
Case #13: NO
Case #14: 15
Case #15: NO
Case #16: 1
Case #17: 2310
Case #18: 23
Case #19: NO
Case #20: NO
Case #21: NO
Case #22: NO
Case #23: NO
Cas...

result:

ok 40 lines

Subtask #2:

score: 35
Accepted

Test #2:

score: 35
Accepted
time: 583ms
memory: 3848kb

input:

40
3 2 100
3 5 7
4 8 16
1 20 5 2
2 5000000000000001 10000000000000000
2500000000000000 5000000000000000
2888 2 10000000000000000
15661 20393 4889 14929 26053 10529 2897 13009 15361 2707 12619 22153 1453 21739 3709 1151 25033 22157 18919 25733 25579 15643 14029 15101 8447 1381 7669 797 9419 1129 1795...

output:

Case #1: NO
Case #2: 10
Case #3: 10000000000000000
Case #4: NO
Case #5: 9999999999999996
Case #6: 304250263527210
Case #7: NO
Case #8: 223092870
Case #9: 6469693230
Case #10: NO
Case #11: 302977
Case #12: NO
Case #13: 1
Case #14: NO
Case #15: 6064949221531200
Case #16: 4900956
Case #17: NO
Case #18:...

result:

ok 40 lines

Extra Test:

score: 0
Extra Test Passed