QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#113128#5528. Least Annoying Constructive ProblemlpfWA 2ms3852kbC++14643b2023-06-16 14:51:222023-06-16 14:52:01

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3

output:

1 2
2 3
1 3

result:

ok Correct

Test #2:

score: 0
Accepted
time: 2ms
memory: 3852kb

input:

4

output:

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

result:

ok Correct

Test #3:

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

input:

5

output:

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

result:

ok Correct

Test #4:

score: -100
Wrong Answer
time: 0ms
memory: 3604kb

input:

6

output:

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

result:

wrong answer Every consecutive n-1 edges have to form a tree, false for 2