QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212285#6830. Just Some Bad MemoryZhangYiDeWA 9ms17172kbC++142.3kb2023-10-13 14:16:042023-10-13 14:16:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3 3
1 2
2 3
1 3

output:

-1

result:

ok "-1"

Test #2:

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

input:

4 0

output:

5

result:

ok "5"

Test #3:

score: 0
Accepted
time: 1ms
memory: 5548kb

input:

5 4
1 2
2 3
3 4
4 5

output:

2

result:

ok "2"

Test #4:

score: 0
Accepted
time: 1ms
memory: 5372kb

input:

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

output:

0

result:

ok "0"

Test #5:

score: 0
Accepted
time: 1ms
memory: 5492kb

input:

4 4
1 2
2 3
3 4
4 1

output:

1

result:

ok "1"

Test #6:

score: 0
Accepted
time: 1ms
memory: 5432kb

input:

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

output:

0

result:

ok "0"

Test #7:

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

input:

4 3
1 2
2 3
3 1

output:

2

result:

ok "2"

Test #8:

score: 0
Accepted
time: 5ms
memory: 9012kb

input:

100000 99999
13413 22698
22698 36667
13413 64418
36667 75207
36667 73542
75207 91445
64418 3222
36667 96990
73542 61771
96990 33073
22698 32560
33073 24210
33073 38905
75207 46243
75207 89600
89600 11756
36667 94609
89600 6427
3222 46213
11756 43560
46243 50875
36667 45066
24210 54458
36667 80150
22...

output:

2

result:

ok "2"

Test #9:

score: 0
Accepted
time: 4ms
memory: 11380kb

input:

100000 99999
77731 86926
77731 23800
86926 89529
23800 33493
86926 30923
23800 25737
23800 48382
25737 35288
48382 23623
35288 83350
35288 43718
89529 46770
30923 29
30923 73178
86926 8382
46770 75585
48382 67116
30923 20689
30923 97292
23800 82313
35288 85630
82313 74213
86926 48620
97292 86647
257...

output:

2

result:

ok "2"

Test #10:

score: 0
Accepted
time: 4ms
memory: 10116kb

input:

100000 99999
4582 99058
99058 87803
87803 5778
5778 21286
99058 64435
5778 25340
99058 84070
99058 92757
87803 48753
21286 71681
21286 50429
71681 22737
21286 48717
48717 81253
64435 23411
5778 30866
81253 76210
50429 16277
81253 16082
99058 32379
84070 95446
76210 40309
76210 35756
25340 71091
2273...

output:

2

result:

ok "2"

Test #11:

score: 0
Accepted
time: 9ms
memory: 8852kb

input:

100000 99999
34790 25024
25024 36551
34790 82646
82646 38938
25024 1562
34790 95790
1562 76262
76262 24681
38938 4943
95790 8669
95790 88401
4943 41293
38938 21530
41293 66721
34790 9066
25024 73316
76262 47595
25024 59910
66721 46517
82646 46936
21530 22361
9066 94253
1562 46296
94253 13074
59910 7...

output:

2

result:

ok "2"

Test #12:

score: 0
Accepted
time: 6ms
memory: 9120kb

input:

100000 99999
98079 73822
73822 63887
73822 71664
98079 65268
65268 72803
71664 77367
65268 85207
77367 39346
65268 55506
63887 49410
85207 35890
55506 51351
85207 87756
51351 47722
87756 31267
35890 91571
39346 9577
31267 31563
91571 59354
87756 27975
85207 59323
27975 34647
63887 52810
31267 83138
...

output:

2

result:

ok "2"

Test #13:

score: -100
Wrong Answer
time: 8ms
memory: 17172kb

input:

100000 100000
42276 12823
12823 87747
87747 59217
59217 2160
2160 85115
85115 75999
75999 74783
74783 84010
84010 20464
20464 41872
41872 31981
31981 2637
2637 97876
97876 70375
70375 63190
63190 65186
65186 42079
42079 60599
60599 76194
76194 30514
30514 69887
69887 87790
87790 88443
88443 63301
63...

output:

0

result:

wrong answer 1st words differ - expected: '1', found: '0'