#chess clock
import time
import random
a=input()
tz=0
tz2=0
tx=time.time()
for i in range(10):
a=input()
ty=time.time()
tz+=ty-tx
print(tz,tz2,'seconds')
b=input()
tx=time.time()
tz2=tx-ty
print(tz,tz2,'seconds')
1.595635175704956 0 seconds
1.595635175704956 2.0320425033569336 seconds
7.294598340988159 2.0320425033569336 seconds
7.294598340988159 3.937506675720215 seconds
10.66051197052002 3.937506675720215 seconds
10.66051197052002 3.463472604751587 seconds
#Cube clock
import time
import random
for i in range(10):
a=input()
start=time.time()
b=input()
stop=time.time()
t=(stop-start)
print(t,'seconds')
print((2**(stop-start))*100*random.random())
1.4127075672149658 seconds
90.41737179540368
0.9768683910369873 seconds
155.6437141858973
1.4243574142456055 seconds
217.7051905334125
9.13411831855774 seconds
7378.7428014433035
Comments