Initial release
This commit is contained in:
9
Toc Boum .py
Normal file
9
Toc Boum .py
Normal file
@@ -0,0 +1,9 @@
|
||||
input = 3188
|
||||
|
||||
res = (0, input)
|
||||
for i in range(1, input//13):
|
||||
j = (input-i*13)//7
|
||||
if i*13+j*7==input:
|
||||
if abs(i-j)<abs(res[0]-res[1]):
|
||||
res = (i,j)
|
||||
print(res)
|
||||
Reference in New Issue
Block a user