Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Polycarp and Coins codeforces solution

for i in range(0, int(input())):
    n = int(input())
    c1 = n // 3;
    c2 = c1;
    if n % 3 == 1:
        c1 += 1
    elif n % 3 == 2:
        c2 += 1
    print(c1, c2)
Comment

PREVIOUS NEXT
Code Example
Python :: how to add another timestamp column plus two hours 
Python :: filtros en python (no contiene) 
Python :: pandas normalize rows to max value 
Python :: find-squares-and-odd-numbers-in-the-given-list 
Python :: bs.newtag() inner html 
Python :: alberi binari di ricerca python 
Python :: python interseciton of 2 sets 
Python :: rename duplicates in list python 
Python :: mechanize python #4 
Python :: how to join models from another app 
Python :: how to add an symbol to a certain part of a list python 
Python :: check string in a list for substrings and return index 
Python :: how to insert ele in python 
Python :: python urllib.request.urlretrieve with a progressbar 
Python :: django email PasswordResetView template path 
Python :: # check built-in function using dir() 
Python :: # filter a list 
Python :: pd.to_excel header char vertical 
Python :: Count the data points based on columns 
Python :: range function without end value 
Python :: Code Example of Checking if a variable is None using is operator 
Python :: matplotlib legend from scratch 
Python :: python print numbers with commas 
Python :: python set vs tuple performance 
Python :: *9c0xxbz] 
Python :: pandas iloc stack overflow 
Python :: Python NumPy Shape function example Printing the shape of the multidimensional array 
Python :: Python3: Deleting even and only showing uneven numbers from, set list. 
Python :: python function arguments multiple lines 
Python :: python how to loop through array 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =