QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#586380#4515. TrianglesZ_30150 ✓555ms3844kbC++1711.0kb2024-09-24 11:41:332024-09-24 11:41:33

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

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

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
6 9 4
Case #2: 2
1 3 2
5 6 4
Case #3: 4
11 12 7
4 3 8
6 9 10
2 1 5
Case #4: 0
Case #5: 2
3 2 5
6 4 1
Case #6: 3
1 4 7
9 2 5
3 8 6
Case #7: 2
3 7 5
2 4 6
Case #8: 3
5 4 1
7 8 9
10 6 2
Case #9: 4
11 3 9
4 5 2
1 7 8
10 12 6
Case #10: 2
1 4 5
6 2 3
Case #11: 4
11 5 8
9 12 10
3 6 2...

result:

ok  (100 test cases)

Test #2:

score: 42
Accepted
time: 555ms
memory: 3844kb

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
46 624 2409
2863 424 999
1335 2697 238
311 2919 1095
1332 1523 787
1515 1042 534
1830 2114 1336
2496 916 275
2666 2023 1297
1693 2755 2234
2685 533 589
1087 2993 1182
2173 2386 2184
1185 2878 1958
2232 764 2584
235 1570 2911
747 2850 1713
57 2...

result:

ok  (100 test cases)