結果

問題 No.2607 Add One Digit
ユーザー superzugan
提出日時 2024-02-10 03:46:23
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 29 ms / 1,000 ms
コード長 194 bytes
コンパイル時間 240 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-09-28 16:59:29
合計ジャッジ時間 1,377 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

s=input()
n=len(s)
lst=set()
for i in range(n+1):
	for j in range(10):
		ans=""
		if i==0 and j==0:continue
		ans+=s[:i]
		ans+=str(j)
		ans+=s[i:]
		# print(ans)
		lst.add(ans)
print(len(lst))
0