Submission #527082

#TimeUsernameProblemLanguageResultExecution timeMemory
527082HoneybeeLabels (NOI20_labels)Cpython 3
0 / 100
246 ms20692 KiB
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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...