結果
| 問題 | No.539 インクリメント |
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-10-03 13:44:57 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 308 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 12,928 KB |
| 最終ジャッジ日時 | 2024-11-16 05:35:30 |
| 合計ジャッジ時間 | 1,800 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 1 RE * 2 |
ソースコード
n= int(input())
li=[input() for _ in range(n)]
for i in li:
if not i[len(i)-1].isdigit():
print(i)
else:
cnt=0
for j in i[::-1]:
if j.isdigit():
cnt+=1
else:
break
print(i[:len(i)-cnt:]+str(int(i[len(i)-cnt:])+1))
kokoa1046