結果

問題 No.3079 Unite Japanese Prefectures
ユーザー gew1fw
提出日時 2025-06-12 18:56:01
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 296 bytes
コンパイル時間 251 ms
コンパイル使用メモリ 82,656 KB
実行使用メモリ 70,536 KB
最終ジャッジ日時 2025-06-12 18:56:05
合計ジャッジ時間 3,465 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

max_n = 10**5
ans = [0] * (max_n + 1)

for d in range(2, 317):
    max_k = max_n // d
    start_k = d
    if start_k > max_k:
        continue
    for k in range(start_k, max_k + 1):
        N = d * k
        ans[N] += 1

T = int(input())
for _ in range(T):
    N = int(input())
    print(ans[N])
0