Submission #526511

# Submission time Handle Problem Language Result Execution time Memory
526511 2022-02-15T05:52:07 Z Honeybee Lost Array (NOI19_lostarray) Python 3
26 / 100
198 ms 8868 KB
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 = [0] * 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 time Memory Grader output
1 Correct 18 ms 2860 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 14 ms 2756 KB Output is correct
4 Correct 13 ms 2832 KB Output is correct
5 Correct 13 ms 2804 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 18 ms 2860 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 14 ms 2756 KB Output is correct
4 Correct 13 ms 2832 KB Output is correct
5 Correct 13 ms 2804 KB Output is correct
6 Incorrect 42 ms 3128 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 18 ms 2860 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 14 ms 2756 KB Output is correct
4 Correct 13 ms 2832 KB Output is correct
5 Correct 13 ms 2804 KB Output is correct
6 Incorrect 42 ms 3128 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 88 ms 5184 KB Output is correct
2 Correct 198 ms 8868 KB Output is correct
3 Correct 149 ms 7408 KB Output is correct
4 Correct 93 ms 5592 KB Output is correct
5 Correct 29 ms 3216 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 18 ms 2860 KB Output is correct
2 Correct 13 ms 2760 KB Output is correct
3 Correct 14 ms 2756 KB Output is correct
4 Correct 13 ms 2832 KB Output is correct
5 Correct 13 ms 2804 KB Output is correct
6 Incorrect 42 ms 3128 KB Output isn't correct
7 Halted 0 ms 0 KB -