Task: | Bittijono |
Sender: | Mbitter |
Submission time: | 2016-10-05 08:10:13 +0300 |
Language: | Python3 |
Status: | READY |
Result: | 10 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 10 |
#2 | TIME LIMIT EXCEEDED | 0 |
#3 | TIME LIMIT EXCEEDED | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | ACCEPTED | 0.07 s | 1 | details |
#2 | TIME LIMIT EXCEEDED | -- | 2 | details |
#3 | TIME LIMIT EXCEEDED | -- | 3 | details |
Code
# import re# import math# a = 1# d = 0# b = 0#print(lis)# bitti = ["","0","1","1","0","1","0","0","1"]# def kerroin(a):# a = 2*a# return an = int(input())o = 0while o != n:k = int(input())c = 1d = 1e = 1l = 0while True:if l == 1:if e % 2 == 0 and k == 1:k = 1print(int(k))l = 0o += 1#del lis[0]breakif e% 2 != 0 and k == 1:k = 0print(int(k))o += 1l = 0#del lis[0]breakif d % 2 == 0:k = 0print((k))#del lis[0]o += 1l = 0breakelse:k = 1print(int(k))#del lis[0]o = o + 1l = 0breakwhile True:c = c + cif k == 1:l = 1breakif c > k:c = c/2k = k-c#print (k)d += 1e += 1c = 1breakif c == k and c != 2:c = c/2k = k-cd += 1e += 1#print(k)c = 1if c == k and c == 2:l = 1break# k = int(lis[0])# while k > 4:# while k > a:# a = kerroin(a)# if a > k:# a = a/2# #print(a)# k = k-a# a = 1# b = b+1## #print(str(k) + "HEH")# if k < 0:# k = k+a# k = k-2# #print(str(k) + "HAH")# if k == a:# while a > 4:## a = a/2# d = d+1## if a is 2 or 4:# k = a# if d > 0:# if d%2 == 0:# k = 0# else:# k = 1## if k < 5:# if b%2 == 0:# k = k# else:# k = k +4# print(bitti[int(k)])# #print(lis[0] +"arvo on " + bitti[int(k)])# del lis[0]# a = 1# d = 0# b = 0
Test details
Test 1
Group: 1
Verdict: ACCEPTED
input |
---|
100 62 9 12 73 ... |
correct output |
---|
1 1 1 0 1 ... |
user output |
---|
1 1 1 0 1 ... |
Test 2
Group: 2
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 565433 141881 120108 825392 ... |
correct output |
---|
1 1 0 0 1 ... |
user output |
---|
(empty) |
Test 3
Group: 3
Verdict: TIME LIMIT EXCEEDED
input |
---|
100000 374768524402011755 937067109466254318 389256426086302899 932585725667010169 ... |
correct output |
---|
0 1 1 1 1 ... |
user output |
---|
(empty) |