08/01/21 19:05:04
>>59
21 Evaluate the sum of all amicable pairs under 10000.
10000より下にある『親和数の組』はいくつあるか?
64 How many continued fractions for N <= 10000 have an odd period?
10000より下にある奇数周期を持つ continued fractions はいくつあるか?
【めも】Evaluate 値を求める odd period 奇数周期
何番目の問題を解いてるのかと思ったらそんな問題は
見当たらないようなw
100/10 = 2 → 0の個数は2つ
190/10 = 19
単純に10で割れば良さそげな予感
cnt = 0
for e in range(10000):
if x % 10 == 0:
x = x / 10
cnt += 1