Submission #526551

# Submission time Handle Problem Language Result Execution time Memory
526551 2022-02-15T07:50:09 Z Honeybee Lost Array (NOI19_lostarray) Python 3
100 / 100
422 ms 24096 KB
s = input().split(' ')

N = int(s[0])
M = int(s[1])

x = [1] * N
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[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 2740 KB Output is correct
2 Correct 14 ms 2748 KB Output is correct
3 Correct 17 ms 2760 KB Output is correct
4 Correct 18 ms 2828 KB Output is correct
5 Correct 13 ms 2836 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2740 KB Output is correct
2 Correct 14 ms 2748 KB Output is correct
3 Correct 17 ms 2760 KB Output is correct
4 Correct 18 ms 2828 KB Output is correct
5 Correct 13 ms 2836 KB Output is correct
6 Correct 37 ms 3320 KB Output is correct
7 Correct 19 ms 3112 KB Output is correct
8 Correct 83 ms 4028 KB Output is correct
9 Correct 24 ms 3124 KB Output is correct
10 Correct 72 ms 3780 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2740 KB Output is correct
2 Correct 14 ms 2748 KB Output is correct
3 Correct 17 ms 2760 KB Output is correct
4 Correct 18 ms 2828 KB Output is correct
5 Correct 13 ms 2836 KB Output is correct
6 Correct 37 ms 3320 KB Output is correct
7 Correct 19 ms 3112 KB Output is correct
8 Correct 83 ms 4028 KB Output is correct
9 Correct 24 ms 3124 KB Output is correct
10 Correct 72 ms 3780 KB Output is correct
11 Correct 16 ms 2892 KB Output is correct
12 Correct 18 ms 3008 KB Output is correct
13 Correct 13 ms 2856 KB Output is correct
14 Correct 14 ms 2896 KB Output is correct
15 Correct 14 ms 2988 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 84 ms 5364 KB Output is correct
2 Correct 190 ms 8932 KB Output is correct
3 Correct 150 ms 7500 KB Output is correct
4 Correct 92 ms 5684 KB Output is correct
5 Correct 26 ms 3264 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 13 ms 2740 KB Output is correct
2 Correct 14 ms 2748 KB Output is correct
3 Correct 17 ms 2760 KB Output is correct
4 Correct 18 ms 2828 KB Output is correct
5 Correct 13 ms 2836 KB Output is correct
6 Correct 37 ms 3320 KB Output is correct
7 Correct 19 ms 3112 KB Output is correct
8 Correct 83 ms 4028 KB Output is correct
9 Correct 24 ms 3124 KB Output is correct
10 Correct 72 ms 3780 KB Output is correct
11 Correct 16 ms 2892 KB Output is correct
12 Correct 18 ms 3008 KB Output is correct
13 Correct 13 ms 2856 KB Output is correct
14 Correct 14 ms 2896 KB Output is correct
15 Correct 14 ms 2988 KB Output is correct
16 Correct 84 ms 5364 KB Output is correct
17 Correct 190 ms 8932 KB Output is correct
18 Correct 150 ms 7500 KB Output is correct
19 Correct 92 ms 5684 KB Output is correct
20 Correct 26 ms 3264 KB Output is correct
21 Correct 196 ms 11696 KB Output is correct
22 Correct 196 ms 13076 KB Output is correct
23 Correct 261 ms 17696 KB Output is correct
24 Correct 257 ms 15360 KB Output is correct
25 Correct 422 ms 24096 KB Output is correct