QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#305208#5008. Zero AAMP Currentsezteam1WA 69ms32012kbC++142.3kb2024-01-14 21:05:222024-01-14 21:05:24

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 7
1 2
2 3
3 1
1 4
2 4
1 4
3 2

output:

-1
-2
3
-2
-1
-2
2

result:

ok good one

Test #2:

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

input:

2 2
1 2
2 1

output:

-1
1

result:

ok good one

Test #3:

score: 0
Accepted
time: 37ms
memory: 27880kb

input:

13758 193861
8665 5619
9734 11588
936 1302
2748 2317
3141 5818
8849 11418
248 943
9907 3274
8337 359
13597 8368
7809 3431
11374 13189
5135 4551
11688 1841
4071 4437
796 364
8000 4384
12954 7759
3399 3585
1918 5592
7368 7392
8872 7186
217 9202
11502 9587
13399 10630
947 3691
1486 8804
8226 7143
2734 ...

output:

-192
-359
307
371
218
-239
671
492
-269
-186
-257
-190
456
-568
-4
-339
-216
-112
104
-223
392
-166
-3
19
-554
519
-81
60
20
-239
134
449
-1
-19
-91
21
-363
39
-133
264
-95
-147
-86
-210
16
-255
416
155
120
165
-60
-65
-70
-266
-4
455
-37
-7
158
-492
1
165
213
-3
242
-5
335
131
45
-28
6
130
310
-530...

result:

ok good one

Test #4:

score: 0
Accepted
time: 30ms
memory: 24968kb

input:

2576 198513
2126 2537
2007 428
1155 1644
1657 1832
1459 1922
2240 1132
230 1696
1376 704
971 597
109 533
310 2328
692 1335
757 443
1964 2388
136 263
2139 2546
1451 1917
2048 1636
2502 137
757 2575
647 2480
2004 618
256 1715
2433 2085
79 1933
83 2549
1659 2016
1936 786
1816 2512
1359 953
1747 2366
19...

output:

120
-212
-18
95
262
-188
28
-40
38
10
17
215
169
283
179
94
-6
-1
-42
223
29
-56
74
44
-2
124
161
-181
-217
278
-174
-188
51
-54
-53
-260
-175
156
208
-13
16
65
154
-147
-195
5
-78
4
6
274
-157
49
-31
86
-199
134
-180
-205
129
-4
-289
251
15
-182
217
-28
-206
-221
-10
22
95
-152
21
-53
104
-188
29
6...

result:

ok good one

Test #5:

score: 0
Accepted
time: 69ms
memory: 32012kb

input:

82644 198952
7250 60424
14369 31861
37573 68142
518 73568
74639 26836
50082 46206
25507 52142
59920 68131
55089 52689
53869 67254
32548 11363
57133 35487
69810 22267
51959 3483
69787 67700
26981 50678
30328 1083
18162 39761
49695 23254
54278 33751
2529 28612
13175 38044
27929 60984
11278 39952
46896...

output:

-62
-154
0
-3
1
3
-3
3
-306
-1
1
-342
0
246
-122
-477
3
-122
79
1
187
-32
0
-3
0
0
68
3
-4
2
35
0
-98
-152
0
0
-261
146
0
-48
293
69
3
52
0
3
3
-2
1
0
-138
1
675
0
0
3
-19
-472
-214
-628
3
-216
403
0
0
-84
1
-133
-2
142
-203
0
-4
-4
0
-236
0
0
-107
0
-101
385
-111
-267
32
-1
-154
0
-93
3
-1
-4
3
-2
...

result:

ok good one

Test #6:

score: 0
Accepted
time: 25ms
memory: 24812kb

input:

3066 190306
1154 186
1738 2367
2880 2483
1819 148
743 909
2190 878
1769 470
426 638
649 1065
2171 399
1935 1067
465 1763
1188 1773
1024 2198
2128 2238
175 1150
1497 1309
161 449
616 259
1573 1742
2607 2505
2412 2073
1221 1928
1803 1556
2390 1153
2595 3022
2171 2756
991 2114
1250 289
1212 2488
886 24...

output:

184
42
28
223
-154
-178
22
-287
162
268
10
42
-2
-27
22
-154
156
-67
-11
118
-2
12
-193
65
-146
70
-10
80
41
189
-159
64
67
134
-13
-19
10
108
0
15
260
-62
127
-40
154
-56
-180
139
-125
151
-148
107
195
-132
10
256
-137
124
-110
150
97
-195
180
-117
-25
281
-104
-162
-226
-8
-24
242
-95
39
48
-93
81...

result:

ok good one

Test #7:

score: 0
Accepted
time: 53ms
memory: 31564kb

input:

62947 193186
22551 46152
47519 19425
11727 62118
1314 39189
12100 58408
1939 22952
27035 2101
8727 11566
31352 16360
6087 34237
55265 53249
11568 56162
45145 17492
25851 58165
20558 49212
54825 3353
61284 39686
8357 8978
12265 10697
3789 41042
14696 54530
34033 18793
44036 1524
10967 28191
34241 333...

output:

-1
-468
-114
402
60
668
-7
404
0
0
-80
12
262
-214
-238
-2
-3
273
4
-91
290
-198
0
100
290
-82
1
277
-184
-4
111
255
-4
-4
1
0
13
3
443
520
-15
3
-205
28
3
1
102
300
-369
173
87
-274
-226
-146
91
-1
568
-329
-124
-104
-132
-219
2
-104
2
66
-4
-23
-1
-416
338
41
-21
153
0
2
-70
4
0
-1
88
1
-423
-1
-4...

result:

ok good one

Test #8:

score: 0
Accepted
time: 43ms
memory: 30848kb

input:

43480 191239
2764 9693
11155 3878
35008 22467
15585 19079
18258 36650
22436 8886
40098 31323
29864 15570
28429 18175
32157 17602
28377 39275
34373 38165
35860 30680
15971 17678
28142 21403
36344 28834
4823 35491
42548 9942
8734 26474
333 25614
8695 6193
28083 42472
20275 32280
10644 13870
39269 3238...

output:

300
-274
-196
392
-87
-1
-57
-1
225
179
-3
-5
-50
68
141
-120
-251
103
-7
87
-53
-123
-3
131
272
-28
-266
92
-2
1
-129
-30
-4
39
106
-3
124
-152
-64
2
-2
-394
192
4
27
176
493
92
308
2
-1
3
265
1
4
254
-54
192
-360
-100
2
3
11
80
-93
-96
-267
-131
38
-11
-131
-187
-4
-123
136
208
-460
59
-353
-3
1
5...

result:

ok good one

Test #9:

score: -100
Wrong Answer
time: 40ms
memory: 30872kb

input:

44894 196108
4806 34877
9136 30358
10866 17290
15667 13264
17961 12496
32755 29806
2921 42651
13853 5805
13222 34459
13583 19243
43448 3758
12773 19121
3092 25400
27927 43493
43466 16023
17001 40852
12530 4439
27639 6554
3858 34705
42998 21472
293 25255
38745 20928
23393 27405
20963 5755
8850 33548
...

output:

397
-19
-15
-270
-4
4
-4
-356
734
-200
-151
173
874
-126
124
323
2
-238
-188
-2
-343
-238
-3
-130
97
338
-2
170
237
2
163
-328
4
1
1
-474
359
598
242
1
-82
3
-1
-4
3
-31
-688
2
257
-493
94
156
-2
361
399
-459
3
-235
-136
-6
-234
112
459
-508
-32
-109
-342
-3
94
1
-3
264
-2
-451
1
-239
-715
381
462
-...

result:

wrong answer Integer parameter [name=wire current strength] equals to -1005, violates the range [-1000, 1000]