結果
問題 | No.537 ユーザーID |
ユーザー |
|
提出日時 | 2022-05-04 19:55:59 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 182 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 63,004 KB |
最終ジャッジ日時 | 2024-07-03 23:03:10 |
合計ジャッジ時間 | 3,134 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
#!/usr/bin/env python3 import sys def getDivisors(n: int): res = [] i = 1 while i * i <= n: if n % i == 0: res.append((i, n // i)) i += 1 return res def main(): N = int(input()) l = getDivisors(N) ans = set() for ll in l: ans.add(str(ll[0]) + str(ll[1])) ans.add(str(ll[1]) + str(ll[0])) print(len(ans)) return if __name__ == '__main__': main()