Precreation contest files

This commit is contained in:
2026-02-11 11:28:23 +07:00
parent 0a8ea477bb
commit cb9f7cab30
134 changed files with 1848 additions and 0 deletions

18
misc/so_mu_dung/code.py Normal file
View File

@@ -0,0 +1,18 @@
import math
highest_num = [0]*31
a = [int(_) for _ in input().split()]
for i in a:
for k in range(32, 0, -1):
if (i % 2**k == 0):
highest_num[k] += 1
res = 0
for i in highest_num:
if (i <= 1):
continue
res += math.comb(i, 2)
print(res)