結果
| 問題 |
No.539 インクリメント
|
| コンテスト | |
| ユーザー |
h_noson
|
| 提出日時 | 2017-07-11 02:10:29 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 250 bytes |
| コンパイル時間 | 132 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2024-10-07 13:57:47 |
| 合計ジャッジ時間 | 1,312 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 RE * 2 |
ソースコード
import re
n = int(input())
for i in range(n):
s = input()
m = re.search(r'(.*[^0-9]+|)([0-9]+)([^0-9]*)',s)
if m is None:
print(s)
else:
print(m.group(1) + str(int(m.group(2)) + 1).zfill(len(m.group(2))) + m.group(3))
h_noson