QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505418#5808. Year of More Code Jamxiaowuc117 ✓1108ms10844kbPython3939b2024-08-05 05:14:392024-08-05 05:14:39

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 117ms
memory: 10656kb

input:

50
1 1
2 2
1 2
2 2
2 2
3 2
3 2 4
2 3
1 2
5 2 3 4 5
2 2
5 2
5 2 3 4 5
7 2 4 5 6 7 8
1000 2
10 2 30 40 50 300 400 500 600 700
7 20 40 50 60 70 80
98 2
49 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
46 55 56 57 ...

output:

Case #1: 1+0/1
Case #2: 4+0/1
Case #3: 4+5/9
Case #4: 4+0/1
Case #5: 8+21/25
Case #6: 14+87277/500000
Case #7: 58+47/49
Case #8: 39+10781/19208
Case #9: 38+3235/21609
Case #10: 100+50999996717/20000000000000000
Case #11: 99+111110871555502189/111111110888888889
Case #12: 99+499996568999606481/499999...

result:

ok 50 lines

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 1108ms
memory: 10844kb

input:

50
1 1
2 2
1 2
2 2
2 2
5 6
2 3
2 2
2 2
2 2
3 2 3
2 2
10 3
4 2 5 9
3 4 8
5 2 3 9 12
686 10
49 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
49 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50...

output:

Case #1: 1+0/1
Case #2: 4+0/1
Case #3: 33+1/5
Case #4: 11+19/25
Case #5: 615+54371/117649
Case #6: 1184+10201/43904
Case #7: 2500+4850999839133/800000000000000
Case #8: 2500+6063749416900000/999999874000003969
Case #9: 1+999999999/1000000000
Case #10: 1+999987656/999987657
Case #11: 100+194999999853...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed