結果

問題 No.1157 Many Quotients easy
ユーザー ああいいああいい
提出日時 2021-12-06 13:51:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 139 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 8,772 KB
最終ジャッジ日時 2023-09-21 15:14:52
合計ジャッジ時間 1,551 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,816 KB
testcase_01 AC 23 ms
8,204 KB
testcase_02 AC 21 ms
8,064 KB
testcase_03 AC 31 ms
8,600 KB
testcase_04 AC 30 ms
8,472 KB
testcase_05 AC 18 ms
8,128 KB
testcase_06 AC 22 ms
8,164 KB
testcase_07 AC 16 ms
7,804 KB
testcase_08 AC 24 ms
8,236 KB
testcase_09 AC 24 ms
8,200 KB
testcase_10 AC 16 ms
7,900 KB
testcase_11 AC 19 ms
8,044 KB
testcase_12 AC 22 ms
8,228 KB
testcase_13 AC 35 ms
8,548 KB
testcase_14 AC 31 ms
8,448 KB
testcase_15 AC 21 ms
8,248 KB
testcase_16 AC 31 ms
8,604 KB
testcase_17 AC 36 ms
8,772 KB
testcase_18 AC 29 ms
8,488 KB
testcase_19 AC 27 ms
8,204 KB
testcase_20 AC 24 ms
8,224 KB
testcase_21 AC 14 ms
7,952 KB
testcase_22 AC 14 ms
7,760 KB
testcase_23 AC 14 ms
7,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())

A = [0] * (N+1)
for i in range(1,N+1):
    A[N // i] += 1
count = 0
for i in A:
    if i:
        count += 1
print(count)
0