답안 #526512

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
526512 2022-02-15T05:55:48 Z bebecanvas Lost Array (NOI19_lostarray) Python 3
26 / 100
212 ms 8628 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)
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 2780 KB Output is correct
2 Correct 15 ms 2764 KB Output is correct
3 Correct 14 ms 2772 KB Output is correct
4 Correct 15 ms 2764 KB Output is correct
5 Correct 19 ms 2764 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 2780 KB Output is correct
2 Correct 15 ms 2764 KB Output is correct
3 Correct 14 ms 2772 KB Output is correct
4 Correct 15 ms 2764 KB Output is correct
5 Correct 19 ms 2764 KB Output is correct
6 Incorrect 40 ms 3096 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 2780 KB Output is correct
2 Correct 15 ms 2764 KB Output is correct
3 Correct 14 ms 2772 KB Output is correct
4 Correct 15 ms 2764 KB Output is correct
5 Correct 19 ms 2764 KB Output is correct
6 Incorrect 40 ms 3096 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 90 ms 5148 KB Output is correct
2 Correct 212 ms 8628 KB Output is correct
3 Correct 160 ms 7248 KB Output is correct
4 Correct 96 ms 5408 KB Output is correct
5 Correct 35 ms 3276 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 14 ms 2780 KB Output is correct
2 Correct 15 ms 2764 KB Output is correct
3 Correct 14 ms 2772 KB Output is correct
4 Correct 15 ms 2764 KB Output is correct
5 Correct 19 ms 2764 KB Output is correct
6 Incorrect 40 ms 3096 KB Output isn't correct
7 Halted 0 ms 0 KB -