結果

問題 No.2607 Add One Digit
ユーザー Kude
提出日時 2024-01-19 21:23:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 1,000 ms
コード長 153 bytes
コンパイル時間 295 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 52,224 KB
最終ジャッジ日時 2024-09-28 03:52:48
合計ジャッジ時間 1,524 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()
st = set()
for i in range(len(s) + 1):
    for x in range(1 if i == 0 else 0, 10):
        st.add(int(s[:i] + str(x) + s[i:]))
print(len(st))
0