結果
問題 | No.537 ユーザーID |
ユーザー |
![]() |
提出日時 | 2017-06-30 23:03:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 606 ms / 2,000 ms |
コード長 | 587 bytes |
コンパイル時間 | 78 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 11,264 KB |
最終ジャッジ日時 | 2024-10-04 21:05:44 |
合計ジャッジ時間 | 4,736 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 32 |
ソースコード
n = int(input()) ans = 0 appear_list = list() for i in range(1, int(n ** 0.5) + 1): if n % i == 0: if i * i == n: if str(i) + str(i) in appear_list: continue ans += 1 appear_list.append(str(i) + str(i)) else: str1 = str(i) + str(n // i) str2 = str(n // i) + str(i) if str1 not in appear_list: ans += 1 appear_list.append(str1) if str2 not in appear_list: ans += 1 appear_list.append(str2) print(ans)