# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
527084 |
2022-02-17T01:24:17 Z |
Honeybee |
Labels (NOI20_labels) |
Python 3 |
|
619 ms |
42460 KB |
N = int(input())
user2 = input().split()
lst = []
output = [1]
low = 1
neg = False
valid = True
for i in user2:
lst.append(int(i))
if int(i) < 0:
neg = True
low = min(low, int(i))
if N == 2:
if lst[0] == 0:
print('-1')
elif lst[0] == 1:
print('1 2')
else:
print('2 1')
else:
for i in range(len(lst)):
output.append(lst[i] + output[i])
if output[-1] > N:
valid = False
if valid == False:
print('-1')
else:
for i in output:
print(i)
print(' ')
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
19 ms |
2872 KB |
Output is correct |
2 |
Correct |
21 ms |
2768 KB |
Output is correct |
3 |
Correct |
16 ms |
2764 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
19 ms |
2872 KB |
Output is correct |
2 |
Correct |
21 ms |
2768 KB |
Output is correct |
3 |
Correct |
16 ms |
2764 KB |
Output is correct |
4 |
Incorrect |
17 ms |
2836 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
19 ms |
2872 KB |
Output is correct |
2 |
Correct |
21 ms |
2768 KB |
Output is correct |
3 |
Correct |
16 ms |
2764 KB |
Output is correct |
4 |
Incorrect |
17 ms |
2836 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
530 ms |
22904 KB |
Output is correct |
2 |
Correct |
13 ms |
2800 KB |
Output is correct |
3 |
Incorrect |
619 ms |
42460 KB |
Output isn't correct |
4 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
19 ms |
2872 KB |
Output is correct |
2 |
Correct |
21 ms |
2768 KB |
Output is correct |
3 |
Correct |
16 ms |
2764 KB |
Output is correct |
4 |
Incorrect |
17 ms |
2836 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |