QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#598641#7181. Graph Cutsucup-team3540RE 0ms3792kbC++201.9kb2024-09-28 22:46:062024-09-28 22:46:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3792kb

input:

4 5
1 2
1 3
1 4
2 3
2 4
10
+ 1
+ 2
?
?
?
?
?
- 2
?
?

output:

5
4
3
2
0
1
0

result:

ok q=10

Test #2:

score: 0
Accepted
time: 0ms
memory: 3788kb

input:

0 0
0

output:


result:

ok q=0

Test #3:

score: 0
Accepted
time: 0ms
memory: 3528kb

input:

0 0
1
?

output:

0

result:

ok q=1

Test #4:

score: -100
Runtime Error

input:

1000 2000
1 50
1 88
331 1
1 352
1 497
2 32
2 282
550 2
989 2
334 3
3 665
4 38
4 69
4 343
4 451
589 4
917 4
89 5
5 162
675 5
681 6
7 22
127 7
7 592
7 672
787 7
8 310
107 9
9 137
184 9
9 244
378 9
446 9
9 658
883 9
65 10
75 10
414 10
10 468
686 10
245 11
269 11
11 386
403 11
493 11
394 12
493 12
565 1...

output:

208
1990
779
953
1474
655
1802
879
567
275
847
1187
1527
1943
657
1077
1043
615
837
836
852
89
528
224
949
1422
340
1183
278
718
497
896
895
1968
743
846
547
435
1561
1723
972
1042
907
254
1736
1528
614
971
426
1593
1078
1296
483
1850
1956
255
1797
1267
1083
509
376
1073
1026
1993
1860
839
181
727
9...

result: