QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#681876#3573. Joint VentureZhaoZiLong0 0ms0kbC++23936b2024-10-27 12:37:212024-10-27 12:37:21

Details

Tip: Click on the bar to expand more detailed information

Pretests


Final Tests

Test #1:

score: 0
Time Limit Exceeded

input:

1
4
9999998
1
2
9999999
1
0
1
1
5
1
1
10000000
1
1
5000000
1
2
9999997
3
1
2
9999998
3
1
3
2
9999997
5000000
1
3
4
9999996
5000000
1
3
5000000
5000000
5000000
1
3
5000000
5000000
2345
1
3
5000000
3455
5000000
1
3
6000000
5000000
5000000
1
4
2000000
3000000
5000000
6000000
1
4
2000000
4000000
5000000...

output:


result: