Submission #496183

# Submission time Handle Problem Language Result Execution time Memory
496183 2021-12-21T01:00:40 Z model_code Kaučuk (COCI21_kaucuk) PyPy 3
50 / 50
53 ms 18264 KB
n = int(input())
c = [0]*3
for i in range(n):
    level, label = input().split()
    level = level.count('sub')
    c[level] += 1
    for i in range(level+1):
        if i != 0:
            print(".", end='')
        print(c[i], end='')
    print(" " + label)
    for i in range(level+1, 3):
        c[i] = 0
# Verdict Execution time Memory Grader output
1 Correct 37 ms 18184 KB Output is correct
2 Correct 37 ms 18128 KB Output is correct
3 Correct 33 ms 18228 KB Output is correct
4 Correct 34 ms 18188 KB Output is correct
5 Correct 35 ms 18208 KB Output is correct
6 Correct 37 ms 18164 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 39 ms 18256 KB Output is correct
2 Correct 42 ms 18196 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 39 ms 18256 KB Output is correct
2 Correct 42 ms 18196 KB Output is correct
3 Correct 36 ms 18188 KB Output is correct
4 Correct 41 ms 18192 KB Output is correct
5 Correct 41 ms 18152 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 37 ms 18184 KB Output is correct
2 Correct 37 ms 18128 KB Output is correct
3 Correct 33 ms 18228 KB Output is correct
4 Correct 34 ms 18188 KB Output is correct
5 Correct 35 ms 18208 KB Output is correct
6 Correct 37 ms 18164 KB Output is correct
7 Correct 39 ms 18256 KB Output is correct
8 Correct 42 ms 18196 KB Output is correct
9 Correct 36 ms 18188 KB Output is correct
10 Correct 41 ms 18192 KB Output is correct
11 Correct 41 ms 18152 KB Output is correct
12 Correct 36 ms 18156 KB Output is correct
13 Correct 34 ms 18132 KB Output is correct
14 Correct 39 ms 18200 KB Output is correct
15 Correct 36 ms 18144 KB Output is correct
16 Correct 42 ms 18212 KB Output is correct
17 Correct 45 ms 18264 KB Output is correct
18 Correct 53 ms 18196 KB Output is correct