QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#81646#1972. JJ RallyZhaoZiLongTL 0ms0kbC++173.0kb2023-02-25 18:03:312023-02-25 18:03:56

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

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

output:

000000
000001
000000
1
000010
000000
1
000011
000010
1
000011
000001
1
000100
000000
1
000101
000100
1
000101
000001
1
000110
000100
1
000110
000010
1
000111
000110
2
000111
000101
2
000111
000011
2
001000
000000
1
001001
001000
1
001001
000001
1
001010
001000
1
001010
000010
1
001011
001010
2
00101...

result: