This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |