Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Codeforce 4C solution in python

n = int(input())
d = {}
for i in range(0, n):
    s = input()
    if s in d:
        print(s+str(d[s]))
        d[s] += 1
    else:
        print("OK")
        d[s] = 1
Source by github.com #
 
PREVIOUS NEXT
Tagged: #Codeforce #solution #python
ADD COMMENT
Topic
Name
3+1 =