Submission #526515

#TimeUsernameProblemLanguageResultExecution timeMemory
526515HoneybeeLost Array (NOI19_lostarray)Cpython 3
5 / 100
1098 ms5756 KiB
s = input().split(' ') N = int(s[0]) M = int(s[1]) querys = [] for i in range(M): ans = input().split(' ') A = int(ans[0]) - 1 B = int(ans[1]) - 1 C = int(ans[2]) querys.append([A, B, C]) x = [69] * N for i in querys: x[i[0]] = max(x[i[0]], i[2]) x[i[1]] = max(x[i[1]], i[2]) output = '' for i in x: output = output + str(i) + ' ' print(output)
#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...