結果
| 問題 | No.2607 Add One Digit |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-19 21:23:49 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 98 ms / 1,000 ms |
| コード長 | 572 bytes |
| 記録 | |
| コンパイル時間 | 309 ms |
| コンパイル使用メモリ | 85,888 KB |
| 実行使用メモリ | 86,400 KB |
| 最終ジャッジ日時 | 2026-04-14 20:42:40 |
| 合計ジャッジ時間 | 3,326 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
n = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
# alist.append(list(map(int,input().split())))
x = list(str(n))
s = set()
for i in range(len(x)+1):
for j in range(10):
temp = x[:]
temp.insert(i,str(j))
s.add(int(''.join(temp)))
#print(temp)
print(len(s)-1)