first commit

This commit is contained in:
=
2024-02-07 15:06:50 +01:00
commit af02e453c1
55 changed files with 2166 additions and 0 deletions

11
p314_/solution.py Normal file
View File

@@ -0,0 +1,11 @@
import numpy as np
import math
n = 250
R = np.add(list(range(np.ceil(n*1.41))), 1)
LL = np.subtract(np.square(R), n**2)
L = np.clip(LL, 0, LL)
A_tri = np.divide(np.add(L, n), 2)
A_seg = np.multiply(np.divide(np.arccos(np.divide(n, L)), ), np.multiply(np.square(R), math.pi))