結果

問題 No.537 ユーザーID
ユーザー kichirb3kichirb3
提出日時 2018-03-03 01:01:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 501 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,768 KB
実行使用メモリ 9,108 KB
最終ジャッジ日時 2023-09-05 04:58:41
合計ジャッジ時間 3,195 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,856 KB
testcase_01 AC 16 ms
7,864 KB
testcase_02 AC 16 ms
7,856 KB
testcase_03 AC 17 ms
7,868 KB
testcase_04 AC 17 ms
7,900 KB
testcase_05 AC 15 ms
7,916 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 AC 16 ms
7,916 KB
testcase_10 AC 16 ms
7,856 KB
testcase_11 AC 16 ms
7,860 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 76 ms
7,948 KB
testcase_19 AC 97 ms
7,900 KB
testcase_20 AC 86 ms
7,920 KB
testcase_21 AC 61 ms
7,900 KB
testcase_22 AC 92 ms
7,840 KB
testcase_23 AC 60 ms
7,816 KB
testcase_24 AC 29 ms
7,868 KB
testcase_25 AC 91 ms
7,952 KB
testcase_26 AC 98 ms
7,804 KB
testcase_27 AC 78 ms
7,800 KB
testcase_28 AC 48 ms
8,812 KB
testcase_29 AC 100 ms
8,968 KB
testcase_30 AC 85 ms
9,108 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
"""
No.537 ユーザーID
https://yukicoder.me/problems/no/537

"""
import sys
from sys import stdin
input = stdin.readline


def calc_divisors(N):
    res = []
    for i in range(1, int(N**0.5) + 1):
        if N % i == 0:
            res.append([i, N//i])
            if N // i != i:
                res.append([N//i, i])
    return res


def main(args):
    N = int(input())
    res = calc_divisors(N)
    print(len(res))


if __name__ == '__main__':
    main(sys.argv[1:])
0