結果
| 問題 | No.539 インクリメント |
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-10-03 14:10:27 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 494 bytes |
| 記録 | |
| コンパイル時間 | 266 ms |
| コンパイル使用メモリ | 12,800 KB |
| 実行使用メモリ | 26,112 KB |
| 最終ジャッジ日時 | 2024-11-16 05:36:23 |
| 合計ジャッジ時間 | 3,908 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | RE * 2 TLE * 1 |
ソースコード
n= int(input())
li=[input() for _ in range(n)]
for i in li:
flag=False
j=0
while True:
if j>=len(i):
print(i)
break
if not i[j].isdigit():
j+=1
continue
else:
k=j
while k<len(i) and i[k].isdigit():
k+=1
num=int(i[j:k])+1
numincedstr=str(num)
i=i[:j]+numincedstr+i[k:]
j+=len(numincedstr)
kokoa1046