QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#642860#9453. Graph Generatorucup-team5121AC ✓339ms16852kbC++202.2kb2024-10-15 16:40:422024-10-15 16:40:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

YES
3 0 
2 0 
1 0 
YES
1 0 
4 0 
3 1 4 
2 2 1 3 
NO

result:

ok 3 cases passed

Test #2:

score: 0
Accepted
time: 339ms
memory: 16852kb

input:

4176
10 15
1 4
9 1
3 7
8 1
2 1
5 4
5 1
10 1
7 1
10 7
10 3
6 4
3 1
6 1
9 2
7 10
6 7
1 7
1 4
7 2
4 2
5 2
3 1
1 6
2 6
5 1
6 8
5 2
3 1
4 6
2 1
5 1
1 4
6 2
6 1
9 15
5 1
4 2
7 1
1 8
2 3
5 8
1 9
4 3
6 5
9 2
3 1
4 1
7 2
9 7
1 6
6 11
1 2
3 5
3 1
3 2
4 3
1 6
4 2
1 4
5 4
5 1
5 2
6 6
1 6
6 3
1 3
1 5
4 2
2 1
10 ...

output:

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

result:

ok 4176 cases passed

Extra Test:

score: 0
Extra Test Passed