QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#619823#4515. TrianglesLeafSeek50 ✓1292ms3700kbC++174.2kb2024-10-07 15:33:132024-10-07 15:37:57

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

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

input:

100
10
220238472 224691753
770968360 1070897
222060078 225731229
213423928 -699125511
571809960 -531790999
-29325160 82281481
523892900 397968241
134123366 175551277
-48116654 71558357
79192162 144205493
6
-800120306 681957950
-800120120 681958048
-800120239 681957972
-800120068 681958102
-800120280...

output:

Case #1: 3
7 3 2
1 8 5
10 6 4
Case #2: 2
4 6 2
5 1 3
Case #3: 4
10 5 1
6 2 3
9 8 12
4 7 11
Case #4: 0
Case #5: 2
2 3 5
1 4 6
Case #6: 3
5 6 8
1 9 2
4 7 3
Case #7: 2
3 7 1
2 5 4
Case #8: 3
4 5 1
6 3 2
10 7 9
Case #9: 4
12 4 10
7 2 1
9 11 8
6 3 5
Case #10: 2
1 5 4
2 6 3
Case #11: 4
3 2 6
10 9 7
4 12 1...

result:

ok  (100 test cases)

Test #2:

score: 42
Accepted
time: 1292ms
memory: 3700kb

input:

100
3000
-92089322 -224238223
-92147554 -225776486
-91601000 -225100640
-92024176 -225644144
-90703509 -224917680
-89202055 -225283952
-92681755 -224149407
-92347180 -225441739
-92259568 -225588653
-91979455 -224254694
-92673281 -224244242
-92527577 -224172521
-90804449 -224883170
-92641474 -2249482...

output:

Case #1: 1000
2743 1593 436
169 1759 2938
2812 2792 2457
2409 46 999
238 624 1095
1332 2863 787
1515 424 534
1336 1335 275
1297 2496 2685
1087 2697 1182
2173 2234 2184
1958 589 2584
235 311 2911
1311 2232 1236
559 2919 1713
635 1523 2603
2132 1042 166
2003 2977 910
2891 1830 2467
1456 68 1626
2815 1...

result:

ok  (100 test cases)