QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#316594#1496. Cow at Largeqiuzx0 20ms21552kbC++171.2kb2024-01-27 22:23:312024-01-27 22:23:33

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 6140kb

input:

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

output:

1

result:

wrong answer 1st lines differ - expected: '3', found: '1'

Test #2:

score: 0
Memory Limit Exceeded

input:

10000
2 1
3 1
4 2
5 3
6 1
7 5
8 6
9 4
10 2
11 9
12 7
13 1
14 7
15 3
16 9
17 12
18 1
19 14
20 17
21 6
22 4
23 20
24 9
25 8
26 21
27 2
28 5
29 7
30 26
31 16
32 27
33 26
34 31
35 5
36 4
37 25
38 28
39 37
40 6
41 32
42 17
43 33
44 7
45 10
46 26
47 31
48 36
49 4
50 1
51 50
52 12
53 11
54 17
55 1
56 29
57...

output:


result:


Test #3:

score: 0
Wrong Answer
time: 16ms
memory: 20264kb

input:

70000
2 1
3 1
4 1
5 4
6 4
7 2
8 2
9 2
10 4
11 9
12 6
13 2
14 8
15 4
16 1
17 13
18 6
19 14
20 5
21 7
22 12
23 11
24 19
25 21
26 10
27 14
28 23
29 4
30 13
31 20
32 20
33 7
34 33
35 29
36 21
37 19
38 11
39 21
40 30
41 27
42 10
43 37
44 1
45 12
46 29
47 3
48 40
49 27
50 22
51 10
52 42
53 20
54 53
55 34
...

output:

31

result:

wrong answer 1st lines differ - expected: '14', found: '31'

Test #4:

score: 0
Wrong Answer
time: 16ms
memory: 20372kb

input:

70000
2 1
3 1
4 3
5 4
6 3
7 6
8 6
9 7
10 8
11 3
12 3
13 8
14 6
15 1
16 1
17 12
18 15
19 15
20 6
21 11
22 4
23 19
24 18
25 21
26 19
27 9
28 22
29 3
30 16
31 23
32 30
33 13
34 28
35 26
36 14
37 3
38 12
39 15
40 33
41 25
42 20
43 2
44 25
45 10
46 9
47 33
48 14
49 2
50 41
51 48
52 24
53 24
54 30
55 2
56...

output:

16

result:

wrong answer 1st lines differ - expected: '33', found: '16'

Test #5:

score: 0
Time Limit Exceeded

input:

70000
2 1
3 2
4 1
5 2
6 2
7 5
8 6
9 4
10 3
11 9
12 4
13 6
14 9
15 2
16 15
17 7
18 2
19 14
20 5
21 18
22 2
23 11
24 14
25 12
26 23
27 13
28 14
29 13
30 15
31 29
32 9
33 18
34 24
35 4
36 9
37 35
38 24
39 2
40 30
41 40
42 31
43 37
44 27
45 35
46 34
47 18
48 15
49 45
50 30
51 44
52 44
53 43
54 22
55 38
...

output:


result:


Test #6:

score: 0
Wrong Answer
time: 20ms
memory: 20308kb

input:

70000
2 1
3 2
4 1
5 1
6 1
7 5
8 1
9 3
10 7
11 10
12 4
13 2
14 2
15 14
16 4
17 12
18 13
19 11
20 6
21 13
22 2
23 5
24 18
25 23
26 20
27 23
28 22
29 26
30 22
31 28
32 4
33 14
34 4
35 6
36 5
37 34
38 18
39 2
40 12
41 7
42 36
43 21
44 25
45 25
46 39
47 45
48 37
49 34
50 13
51 3
52 20
53 49
54 26
55 10
5...

output:

43

result:

wrong answer 1st lines differ - expected: '40', found: '43'

Test #7:

score: 0
Memory Limit Exceeded

input:

70000
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52...

output:


result:


Test #8:

score: 0
Wrong Answer
time: 16ms
memory: 20364kb

input:

70000
2 1
3 2
4 3
5 3
6 4
7 6
8 7
9 8
10 5
11 10
12 1
13 9
14 13
15 14
16 12
17 11
18 17
19 15
20 19
21 18
22 21
23 16
24 20
25 24
26 23
27 22
28 26
29 25
30 27
31 28
32 31
33 30
34 32
35 34
36 35
37 36
38 37
39 38
40 29
41 39
42 40
43 33
44 43
45 44
46 45
47 41
48 42
49 46
50 48
51 50
52 47
53 52
5...

output:

1

result:

wrong answer 1st lines differ - expected: '11', found: '1'

Test #9:

score: 0
Wrong Answer
time: 17ms
memory: 20280kb

input:

70000
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52...

output:

1

result:

wrong answer 2nd lines differ - expected: '12', found: ''

Test #10:

score: 0
Wrong Answer
time: 15ms
memory: 21552kb

input:

70000
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52...

output:

1

result:

wrong answer 2nd lines differ - expected: '10', found: ''

Test #11:

score: 0
Wrong Answer
time: 20ms
memory: 20820kb

input:

70000
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 10
12 11
13 12
14 13
15 14
16 15
17 16
18 17
19 18
20 19
21 20
22 21
23 22
24 23
25 24
26 25
27 26
28 27
29 28
30 29
31 30
32 31
33 32
34 33
35 34
36 35
37 36
38 37
39 38
40 39
41 40
42 41
43 42
44 43
45 44
46 45
47 46
48 47
49 48
50 49
51 50
52 51
53 52...

output:

1

result:

wrong answer 2nd lines differ - expected: '17', found: ''