QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#676024#7181. Graph CutsZhaoZiLongWA 289ms16284kbC++201.1kb2024-10-25 20:01:342024-10-25 20:01:34

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3616kb

input:

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

output:

2
3
4
5
0
1
0

result:

ok q=10

Test #2:

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

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
Wrong Answer
time: 289ms
memory: 16284kb

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:

1
4
5
8
9
10
12
14
16
18
19
25
27
29
33
38
39
40
4
42
47
48
49
50
56
58
59
62
63
67
69
70
71
73
75
79
81
82
83
84
87
89
91
94
97
101
103
104
71
89
106
107
108
109
110
113
114
115
118
120
121
27
122
125
49
126
129
130
131
132
132
137
34
145
147
148
149
152
153
154
155
156
157
159
160
104
105
106
107
...

result:

wrong answer Edge 4 removed twice