QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#104758#3020. Rainbow GraphyouwikeTL 35ms3680kbC++142.4kb2023-05-11 21:32:582023-05-11 21:33:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3680kb

input:

5 8
1 5 1 R
2 1 2 R
5 4 5 R
4 5 3 G
1 3 3 G
4 3 5 G
5 4 1 B
1 2 2 B

output:

-1
-1
-1
-1
15
14
17
22

result:

ok 8 numbers

Test #2:

score: 0
Accepted
time: 35ms
memory: 3664kb

input:

31 93
11 28 508 B
5 29 329 R
26 27 213 R
23 21 11 B
19 20 373 R
7 14 19 B
11 15 478 B
9 27 737 R
8 30 548 B
14 8 468 R
27 14 989 G
25 25 235 B
18 3 669 R
26 5 254 B
8 6 866 G
26 30 612 R
29 4 658 R
3 11 690 R
29 24 650 R
17 24 986 B
13 19 608 B
10 26 380 B
3 17 998 R
12 16 849 B
23 5 449 B
19 13 302...

output:

-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
18184
17680
17536
17681
17916
18215
18677
19147
19634
20132
20662
21210
21760
22322
22902
23503
24106
24714
25326
25976
26628
27286
27955
28636
29321
30011
307...

result:

ok 93 numbers

Test #3:

score: -100
Time Limit Exceeded

input:

31 92
23 28 549 G
27 23 834 G
11 15 330 G
21 27 293 B
26 2 799 B
11 21 691 B
26 15 495 B
4 29 846 B
11 18 386 B
10 4 482 G
8 2 702 R
23 15 227 G
5 9 742 G
25 1 125 G
1 2 507 G
24 16 500 G
7 23 905 G
14 9 458 G
22 9 150 R
8 4 241 G
21 30 344 B
20 1 947 G
28 27 282 G
10 15 995 B
23 22 837 B
29 7 215 B...

output:


result: