polycarp and coins codeforces solution

Solutions on MaxInterview for polycarp and coins codeforces solution by the best coders in the world

showing results for - "polycarp and coins codeforces solution"
Montserrat
27 Jan 2018
1for i in range(0, int(input())):
2    n = int(input())
3    c1 = n // 3;
4    c2 = c1;
5    if n % 3 == 1:
6        c1 += 1
7    elif n % 3 == 2:
8        c2 += 1
9    print(c1, c2)