結果

問題 No.539 インクリメント
ユーザー kokoa1046kokoa1046
提出日時 2017-10-03 13:44:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 322 bytes
コンパイル時間 144 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 13,056 KB
最終ジャッジ日時 2024-04-27 22:38:46
合計ジャッジ時間 1,441 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
            
0