| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 527082 | Honeybee | Labels (NOI20_labels) | Cpython 3 | 246 ms | 20692 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 user2[0] == 0:
print(-1)
elif user2[0] == 1:
print('1 2')
else:
print('2, 1')
if neg == False:
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)
pritn(' ')| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
