QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505443#5840. Elegant Diamondxiaowuc112 ✓117ms3640kbC++172.3kb2024-08-05 05:24:002024-08-05 05:24:01

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 4
Accepted

Test #1:

score: 4
Accepted
time: 2ms
memory: 3640kb

input:

100
4
   1
  7 6
 7 4 7
7 0 9 6
 6 2 0
  4 8
   7
7
      5
     0 1
    5 2 3
   1 8 4 7
  8 3 6 6 8
 2 1 0 6 4 2
0 2 4 4 4 6 6
 3 1 5 9 8 5
  6 3 2 4 4
   7 6 7 7
    4 7 2
     4 9
      5
4
   8
  0 5
 0 5 1
2 3 1 6
 4 4 0
  0 8
   3
5
    3
   0 9
  7 6 8
 0 3 1 3
9 5 8 4 4
 7 1 3 6
  5 8 8
   ...

output:

Case #1: 84
Case #2: 275
Case #3: 84
Case #4: 119
Case #5: 319
Case #6: 360
Case #7: 36
Case #8: 0
Case #9: 225
Case #10: 0
Case #11: 65
Case #12: 12
Case #13: 84
Case #14: 420
Case #15: 544
Case #16: 377
Case #17: 0
Case #18: 0
Case #19: 0
Case #20: 96
Case #21: 220
Case #22: 544
Case #23: 0
Case #...

result:

ok 100 lines

Subtask #2:

score: 8
Accepted

Test #2:

score: 8
Accepted
time: 117ms
memory: 3580kb

input:

100
7
      3
     9 8
    3 9 1
   6 2 5 6
  8 7 0 8 8
 6 7 2 5 7 8
0 2 8 9 6 0 0
 6 9 3 8 8 3
  8 5 7 9 5
   3 1 1 7
    8 4 9
     1 5
      8
12
           9
          9 6
         0 3 0
        7 2 9 5
       7 2 5 3 9
      7 1 4 0 0 4
     5 8 0 5 6 3 9
    4 3 2 2 8 1 8 1
   0 7 7 6 5 0 0 3 ...

output:

Case #1: 275
Case #2: 1012
Case #3: 1127
Case #4: 19404
Case #5: 1012
Case #6: 1012
Case #7: 1127
Case #8: 119
Case #9: 5
Case #10: 1127
Case #11: 1200
Case #12: 945
Case #13: 144
Case #14: 0
Case #15: 1012
Case #16: 1012
Case #17: 220
Case #18: 792
Case #19: 1200
Case #20: 945
Case #21: 0
Case #22:...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed