Все задачи на 5.10.17 13:00

This commit is contained in:
2017-10-05 13:08:02 +03:00
parent 93746b05d7
commit ca2ca71f63
120 changed files with 2343 additions and 0 deletions

13
uts/session_py/10.py Normal file
View File

@@ -0,0 +1,13 @@
from random import *
from math import *
n = 10000
k = 0
for i in range(n):
x = uniform(-sqrt(2)/3, sqrt(2)/3)
y = uniform(-sqrt(2)/3, sqrt(2)/3)
z = uniform(-sqrt(2)/3, sqrt(2)/3)
if ():
k+=1
print(k/n)