Upload ABC400 codes

This commit is contained in:
2025-04-05 23:46:23 +08:00
parent 60c1caf0b7
commit 4ae5e9419c
11 changed files with 204 additions and 0 deletions

20
AtCoder/ABC_400/C.py Normal file
View File

@ -0,0 +1,20 @@
import math
N = int(input())
count = 0
e = 1
while True:
t = 1 << e
if t > N:
break
Q = N // t
if Q == 0:
e += 1
continue
m = math.isqrt(Q)
cnt += (m + 1) // 2
e += 1
print(cnt)