QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#162480#4218. Hidden Graphalch07ML 0ms3856kbC++143.2kb2023-09-03 13:18:552023-09-03 13:18:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3856kb

input:

3
1 2
-1 -1
1 3
-1 -1
2 3
-1 -1

output:

? 2 2 1 
? 1 2 
? 2 3 1 
? 1 3 
? 2 3 2 
? 1 3 
! 3
1 2
1 3
2 3

result:

ok correct

Test #2:

score: -100
Memory Limit Exceeded

input:

10
1 2
-1 -1
1 3
-1 -1
-1 -1
1 2
1 4
-1 -1
-1 -1
2 5
-1 -1
-1 -1
4 5
-1 -1
1 2
1 2
1 2
1 2
2 6
-1 -1
-1 -1
-1 -1
-1 -1
-1 -1
4 5
4 5
4 5
2 5
3 7
4 5
4 5
4 5
2 5
4 5
2 5
2 5
2 5
4 5
4 5
2 5
2 5
4 5
2 5
4 5
4 5
2 5
4 5
4 5
4 5
4 5
4 5
4 5
2 5
2 5
4 5
2 5
4 5
2 5
2 5
4 5
2 5
4 5
2 5
4 5
2 5
2 5
2 5
4 5...

output:

? 2 2 1 
? 1 2 
? 2 3 1 
? 1 3 
? 2 3 2 
? 3 4 1 2 
? 3 4 1 2 
? 2 4 2 
? 2 4 3 
? 3 5 1 2 
? 2 5 1 
? 2 5 3 
? 2 5 4 
? 1 5 
? 3 6 1 2 
? 3 6 1 2 
? 3 6 1 2 
? 3 6 1 2 
? 3 6 1 2 
? 2 6 1 
? 2 6 3 
? 2 6 4 
? 2 6 5 
? 2 7 1 
? 5 7 2 3 4 5 
? 5 7 2 3 4 5 
? 5 7 2 3 4 5 
? 5 7 2 3 4 5 
? 5 7 2 3 4 5 ...

result: