QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#326287#3649. Interview QueueGuanYunchangTL 59ms93452kbC++203.2kb2024-02-12 19:43:012024-02-12 19:43:02

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

10
3 6 2 3 2 2 2 1 5 6

output:

2
3 2 2 1 5 
3 2 2 
6 6 

result:

ok 4 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3592kb

input:

3
17 17 17

output:

0
17 17 17 

result:

ok 2 lines

Test #3:

score: 0
Accepted
time: 0ms
memory: 3660kb

input:

7
8 1 2 3 5 6 7

output:

2
1 2 3 5 6 
7 
8 

result:

ok 4 lines

Test #4:

score: 0
Accepted
time: 51ms
memory: 93296kb

input:

100000
1000000000 999999999 999999998 999999997 999999996 999999995 999999994 999999993 999999992 999999991 999999990 999999989 999999988 999999987 999999986 999999985 999999984 999999983 999999982 999999981 999999980 999999979 999999978 999999977 999999976 999999975 999999974 999999973 999999972 99...

output:

1
999999999 999999998 999999997 999999996 999999995 999999994 999999993 999999992 999999991 999999990 999999989 999999988 999999987 999999986 999999985 999999984 999999983 999999982 999999981 999999980 999999979 999999978 999999977 999999976 999999975 999999974 999999973 999999972 999999971 99999997...

result:

ok 3 lines

Test #5:

score: 0
Accepted
time: 59ms
memory: 93452kb

input:

100000
999900001 999900002 999900003 999900004 999900005 999900006 999900007 999900008 999900009 999900010 999900011 999900012 999900013 999900014 999900015 999900016 999900017 999900018 999900019 999900020 999900021 999900022 999900023 999900024 999900025 999900026 999900027 999900028 999900029 999...

output:

1
999900001 999900002 999900003 999900004 999900005 999900006 999900007 999900008 999900009 999900010 999900011 999900012 999900013 999900014 999900015 999900016 999900017 999900018 999900019 999900020 999900021 999900022 999900023 999900024 999900025 999900026 999900027 999900028 999900029 99990003...

result:

ok 3 lines

Test #6:

score: -100
Time Limit Exceeded

input:

100000
2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

output:


result: