結果
| 問題 | No.539 インクリメント |
| コンテスト | |
| ユーザー |
kokoa1046
|
| 提出日時 | 2017-10-03 13:44:57 |
| 言語 | Python3 (3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 14,848 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-09-24 03:55:39 |
| 合計ジャッジ時間 | 2,661 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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