Submission #526521

# Submission time Handle Problem Language Result Execution time Memory
526521 2022-02-15T06:01:17 Z bebecanvas Lost Array (NOI19_lostarray) Python 3
100 / 100
320 ms 6212 KB
s = input().split(' ')
 
N = int(s[0])
M = int(s[1])
 
 
x = [1] * 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)
 
for i in x:
    print(i)
    print(" ")
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2816 KB Output is correct
2 Correct 12 ms 2836 KB Output is correct
3 Correct 12 ms 2812 KB Output is correct
4 Correct 13 ms 2764 KB Output is correct
5 Correct 13 ms 2784 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2816 KB Output is correct
2 Correct 12 ms 2836 KB Output is correct
3 Correct 12 ms 2812 KB Output is correct
4 Correct 13 ms 2764 KB Output is correct
5 Correct 13 ms 2784 KB Output is correct
6 Correct 31 ms 3244 KB Output is correct
7 Correct 20 ms 3112 KB Output is correct
8 Correct 99 ms 3968 KB Output is correct
9 Correct 28 ms 3096 KB Output is correct
10 Correct 66 ms 3732 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2816 KB Output is correct
2 Correct 12 ms 2836 KB Output is correct
3 Correct 12 ms 2812 KB Output is correct
4 Correct 13 ms 2764 KB Output is correct
5 Correct 13 ms 2784 KB Output is correct
6 Correct 31 ms 3244 KB Output is correct
7 Correct 20 ms 3112 KB Output is correct
8 Correct 99 ms 3968 KB Output is correct
9 Correct 28 ms 3096 KB Output is correct
10 Correct 66 ms 3732 KB Output is correct
11 Correct 14 ms 2892 KB Output is correct
12 Correct 17 ms 2924 KB Output is correct
13 Correct 13 ms 2844 KB Output is correct
14 Correct 18 ms 2816 KB Output is correct
15 Correct 16 ms 2892 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 78 ms 2840 KB Output is correct
2 Correct 171 ms 2808 KB Output is correct
3 Correct 125 ms 2764 KB Output is correct
4 Correct 84 ms 2756 KB Output is correct
5 Correct 23 ms 2728 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2816 KB Output is correct
2 Correct 12 ms 2836 KB Output is correct
3 Correct 12 ms 2812 KB Output is correct
4 Correct 13 ms 2764 KB Output is correct
5 Correct 13 ms 2784 KB Output is correct
6 Correct 31 ms 3244 KB Output is correct
7 Correct 20 ms 3112 KB Output is correct
8 Correct 99 ms 3968 KB Output is correct
9 Correct 28 ms 3096 KB Output is correct
10 Correct 66 ms 3732 KB Output is correct
11 Correct 14 ms 2892 KB Output is correct
12 Correct 17 ms 2924 KB Output is correct
13 Correct 13 ms 2844 KB Output is correct
14 Correct 18 ms 2816 KB Output is correct
15 Correct 16 ms 2892 KB Output is correct
16 Correct 78 ms 2840 KB Output is correct
17 Correct 171 ms 2808 KB Output is correct
18 Correct 125 ms 2764 KB Output is correct
19 Correct 84 ms 2756 KB Output is correct
20 Correct 23 ms 2728 KB Output is correct
21 Correct 172 ms 4104 KB Output is correct
22 Correct 171 ms 3972 KB Output is correct
23 Correct 227 ms 2928 KB Output is correct
24 Correct 211 ms 4740 KB Output is correct
25 Correct 320 ms 6212 KB Output is correct