結果
問題 |
No.537 ユーザーID
|
ユーザー |
|
提出日時 | 2022-05-04 19:55:36 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 465 bytes |
コンパイル時間 | 162 ms |
コンパイル使用メモリ | 82,440 KB |
実行使用メモリ | 69,052 KB |
最終ジャッジ日時 | 2024-07-03 23:02:48 |
合計ジャッジ時間 | 2,738 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 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: print(ll) ans.add(str(ll[0]) + str(ll[1])) ans.add(str(ll[1]) + str(ll[0])) print(len(ans)) return if __name__ == '__main__': main()