Task: | Bittijono |
Sender: | Mbitter |
Submission time: | 2016-10-05 10:18:41 +0300 |
Language: | Python3 |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
#2 | TIME LIMIT EXCEEDED | 0 |
#3 | TIME LIMIT EXCEEDED | 0 |
test | verdict | time | group | |
---|---|---|---|---|
#1 | WRONG ANSWER | 0.06 s | 1 | details |
#2 | TIME LIMIT EXCEEDED | -- | 2 | details |
#3 | TIME LIMIT EXCEEDED | -- | 3 | details |
Code
from math import log2, pown = 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:if k == 1:l = 1#print(k)j = float(k)c = log2(k)#print(c)if round(c) > c:c = round(c)-1if pow(2,c) == k:c = c - 1else:c = round(c)p = pow(2,c)#print(p)k = int(k-p)e += 1d += 1break## c = c/2# k = k-c# #print (k)# d += 1# e += 1# c = 1# break# if c == k and c != 2:# c = c/2# k = k-c# d += 1# e += 1# #print(k)# c = 1# if c == k and c == 2:# l = 1# break## 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: WRONG ANSWER
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) |