結果
問題 |
No.539 インクリメント
|
ユーザー |
![]() |
提出日時 | 2017-10-03 13:44:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
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))