Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

codeforces 677a python solution

n,h=map(int,input().split())
list_of_inputs=list(map(int,input().split()))
summation =0

for i in range(n):
    if list_of_inputs[i]>h :
        summation=summation+1
        
    summation=summation+1
    
print(summation)
Comment

PREVIOUS NEXT
Code Example
Python :: read binary file python 
Python :: create temporary files in python 
Python :: import stopwords 
Python :: fill na with mode and mean python 
Python :: pandas read csv unnamed 0 
Python :: matplotlib show percentage y axis 
Python :: how to set icon in tkinter 
Python :: python deepcopy 
Python :: parcourir une liste par la fin python 
Python :: how to increase size of graph in jupyter 
Python :: series to dataframe with column names 
Python :: python disable warning deprecated 
Python :: all characters python 
Python :: pyspark correlation 
Python :: how to add up everything in a list python 
Python :: how to record pyttsx3 file using python 
Python :: amazon cli on commadline 
Python :: replace value column by another if missing pandas 
Python :: python remove a key from a dictionary 
Python :: python lowercase 
Python :: how to load wav file python 
Python :: how to log ip addresses in flask 
Python :: torchviz 
Python :: how to get the mouse input in pygame 
Python :: connecting google colab to local runtime 
Python :: como deixar todas as letras maiusculas no python 
Python :: minimize window with python 
Python :: define variable with if statement python 
Python :: pandas order by date column 
Python :: install django rest_framework 
ADD CONTENT
Topic
Content
Source link
Name
8+9 =