結果
| 問題 |
No.537 ユーザーID
|
| コンテスト | |
| ユーザー |
okkokok
|
| 提出日時 | 2017-07-28 16:19:58 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 397 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-10-10 04:54:27 |
| 合計ジャッジ時間 | 6,983 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 7 |
ソースコード
N = int(input())
num = 0
a = 1
d = []
while a**2 < N:
if N%a == 0:
num += 2
b = str(a)
c = str(N//a)
if b+c == c+b:
num -= 1
if b in d:
num -= 1
if c in d:
num -= 1
d.append(b)
d.append(c)
a += 1
if a**2 == N:
num += 1
print(num)
okkokok