QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#49999#872. Joyful NumbersGuanYunchangTL 0ms0kbC++112.3kb2022-09-24 13:33:512022-09-24 13:33:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Time Limit Exceeded

input:

2
1
4

output:

1
2
4
5
7
0
7
0
0
5
2
5
0
3
4
3
3
0
4
0
0
3
0
2
4
4
0
5
5
3
0
0
0
0
0
2
0
0
4
6
0
3
7
5
0
3
0
0
0
3
4
4
4
6
6
5
9
5
5
0
0
0
4
5
0
4
0
0
0
4
0
0
0
0
5
5
0
3
0
0
4
0
4
0
5
4
5
0
0
0
0
0
0
4
5
5
4
2
4
0
0
0
0
0
0
7
0
3
5
0
0
0
2
3
5
0
0
5
3
3
5
4
2
6
0
3
0
0
4
0
2
5
4
0
3
6
0
0
4
0
5
2
0
0
2
0
0
5
5
0
...

result: