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 :: python n choose r 
Python :: messages django 
Python :: random element python 
Python :: default requires 2 arguments, 1 provided 
Python :: gow to find a letter in a word in python 
Python :: get list of users django 
Python :: pandas describe get mean min max 
Python :: filter rows pandas 
Python :: np zeros in more dimensions 
Python :: is alphabet python 
Python :: python check if variables are the same 
Python :: Addition/subtraction of integers and integer-arrays with DatetimeArray is no longer supported 
Python :: calcolatrice 
Python :: df to np array 
Python :: date parser python pandas 
Python :: gpu training tensorflow 
Python :: mean code python 
Python :: python how to get every name in folder 
Python :: from .cv2 import * ImportError: /home/pi/.local/lib/python3.7/site-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8 
Python :: how to move columns in a dataframen in python 
Python :: encoding read_csv 
Python :: code for making an exe file for python 
Python :: django get user model funciton 
Python :: add a title to pandas dataframe 
Python :: pyqt5 display math 
Python :: get the system boot time in python 
Python :: printing a range of no one line in python 
Python :: pandas to tensor torch 
Python :: python read excel sheet name 
Python :: pycharm remove not in use imports 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =