답안 #526518

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
526518 2022-02-15T05:59:41 Z bebecanvas Lost Array (NOI19_lostarray) Python 3
26 / 100
189 ms 3064 KB
s = input().split(' ')
 
N = int(s[0])
M = int(s[1])
 
 
x = [0] * N
for i in range(M):
    ans = input().split(' ')
    A = int(ans[0]) - 1
    B = int(ans[1]) - 1
    C = int(ans[2])
    x[A] = max(x[A], C)
    x[B] = max(x[B], C)
 
    
output = ''
for i in x:
    output = output + str(i) + ' '
print(output)
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2764 KB Output is correct
2 Correct 13 ms 2844 KB Output is correct
3 Correct 13 ms 2748 KB Output is correct
4 Correct 12 ms 2740 KB Output is correct
5 Correct 14 ms 2840 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2764 KB Output is correct
2 Correct 13 ms 2844 KB Output is correct
3 Correct 13 ms 2748 KB Output is correct
4 Correct 12 ms 2740 KB Output is correct
5 Correct 14 ms 2840 KB Output is correct
6 Incorrect 43 ms 3064 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2764 KB Output is correct
2 Correct 13 ms 2844 KB Output is correct
3 Correct 13 ms 2748 KB Output is correct
4 Correct 12 ms 2740 KB Output is correct
5 Correct 14 ms 2840 KB Output is correct
6 Incorrect 43 ms 3064 KB Output isn't correct
7 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 84 ms 2844 KB Output is correct
2 Correct 189 ms 2836 KB Output is correct
3 Correct 126 ms 2796 KB Output is correct
4 Correct 90 ms 2840 KB Output is correct
5 Correct 25 ms 2800 KB Output is correct
# 결과 실행 시간 메모리 Grader output
1 Correct 13 ms 2764 KB Output is correct
2 Correct 13 ms 2844 KB Output is correct
3 Correct 13 ms 2748 KB Output is correct
4 Correct 12 ms 2740 KB Output is correct
5 Correct 14 ms 2840 KB Output is correct
6 Incorrect 43 ms 3064 KB Output isn't correct
7 Halted 0 ms 0 KB -