Start: Jul, 05, 2019 08:40:00
2019年度暑期短学期达标测试
End: Jul, 05, 2019 11:40:00
Contest has ended!
Time elapsed: 03:00:00
Time remaining: 00:00:00

Problem_ID: I
Result: Accepted
Time: 254ms
Memory: 25312kB
Author: CT12811011281
In contest: 1281

1
2
3
4
5
6
7
8
9
t=int(input())
for i in range(t):
    a=int(input())
    s=0
    for j in range(1,a+1):
        if j%3==1 or j%3==2:
            s+=1
    yu=s%3
    print(yu)