Answers for "Codeforce 4C solution in python"

1

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
Posted by: Guest on March-27-2022

Code answers related to "Codeforce 4C solution in python"

Python Answers by Framework

Browse Popular Code Answers by Language