QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#496971#7324. Eulerian OrientationZhangYiDeWA 13ms10088kbC++141.7kb2024-07-28 17:26:482024-07-28 17:26:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

4 4
1 2
1 3
1 4
2 3
6 6
1 2
2 3
3 1
4 5
5 6
6 4
2 3
1 1
1 2
1 2

output:

9
54
14

result:

ok 3 number(s): "9 54 14"

Test #2:

score: 0
Accepted
time: 7ms
memory: 8048kb

input:

5 6
5 4
1 5
3 3
5 1
5 3
2 5
5 3
4 1
1 3
4 5
5 2
3 1
2 5
5 8
4 3
5 4
2 5
3 1
5 3
1 5
2 1
5 1
5 10
4 2
5 4
4 4
2 4
3 4
2 3
4 3
1 5
2 5
5 5
5 4
2 2
3 1
4 3
1 4
5 7
4 4
5 5
4 5
1 5
5 1
5 1
2 4
5 7
5 2
5 5
1 4
1 4
4 3
2 2
2 5
5 0
5 10
4 3
5 5
4 4
5 4
4 1
4 2
4 2
5 4
5 2
1 1
5 1
5 5
5 9
3 1
4 2
5 3
4 3
1 ...

output:

14
0
0
304
1472
26
120
184
0
1152
1
736
0
1
72
0
24
736
0
68
4
464
72
336
184
6
248
44
128
312
9
4
0
0
464
44
1
68
0
42
0
272
312
6
88
6
592
768
176
0
0
64
232
0
1
0
40
736
0
0
0
140
1
896
1856
0
0
1504
38
0
1248
0
232
26
1
1824
0
0
0
0
0
0
0
592
0
4
40
304
9
1472
720
0
1
0
0
0
1
0
64
768
0
24
80
34...

result:

ok 10000 numbers

Test #3:

score: 0
Accepted
time: 13ms
memory: 8048kb

input:

10 1
4 5
10 1
8 10
10 4
4 2
9 3
2 7
8 10
10 12
3 6
1 1
3 10
9 5
10 8
9 1
10 6
10 2
9 8
9 3
7 8
4 3
10 0
10 12
3 7
7 7
4 7
7 3
9 10
2 5
3 1
3 2
5 1
9 6
6 9
3 2
10 12
10 6
2 8
7 4
6 4
4 7
9 4
1 2
10 8
8 7
4 7
6 6
5 8
10 8
7 5
10 2
1 2
7 5
3 6
6 1
8 9
5 2
10 1
3 8
10 9
4 1
5 5
9 8
6 5
8 2
3 8
10 4
1 6
...

output:

0
0
0
128
0
960
336
4
0
1
17664
0
1
0
0
5120
0
0
0
68
44
14
44544
8000
1
0
0
74
5312
12032
376
26
6
216
944
0
2208
1
36
1
164
0
3008
464
0
1
480
19840
1824
0
0
2272
0
240
0
44544
64
4
72
128
218112
18816
3616
6144
1104
0
800
6
928
0
25
0
44
816
24
400
0
0
1
31744
1
0
88064
38
42
8000
1
7872
4
2688
1...

result:

ok 10000 numbers

Test #4:

score: -100
Wrong Answer
time: 13ms
memory: 8212kb

input:

2000 418
317 1506
1650 1676
169 1876
881 202
1095 495
672 1456
665 687
1484 115
548 1490
1651 796
147 1003
1002 487
1522 639
552 1670
515 1659
328 220
893 556
1099 147
1864 1925
1428 454
1938 365
1082 1239
829 318
1369 1386
1678 23
1857 1944
1232 27
1862 1838
1519 576
910 635
1022 833
1462 149
273 1...

output:

0
109154789
62
1
0
370894386
-136733159
6
-392554399
0
5423104
1
44
6582272
0
-25908949
-409331549
0
0
0
9
0
533105207
93139047
0
14
297811968
1
0
1
-406792785
-812295676
-953415597
100
0
531709726
0
-496792065
579192947
0
0
126621375
425541428
617939621
0
318980259
216705934
1
0
500368152
0
8792023...

result:

wrong answer 2nd numbers differ - expected: '97282836', found: '109154789'