結果
| 問題 | No.2607 Add One Digit |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-19 21:23:49 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 183 ms / 1,000 ms |
| + 369µs | |
| コード長 | 572 bytes |
| 記録 | |
| コンパイル時間 | 227 ms |
| コンパイル使用メモリ | 96,336 KB |
| 実行使用メモリ | 92,792 KB |
| 最終ジャッジ日時 | 2026-09-05 11:54:57 |
| 合計ジャッジ時間 | 5,745 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_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)