結果
| 問題 |
No.3035 文字列のみの反転
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-28 21:30:46 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 2,000 ms |
| コード長 | 147 bytes |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 82,708 KB |
| 実行使用メモリ | 53,248 KB |
| 最終ジャッジ日時 | 2025-02-28 21:30:58 |
| 合計ジャッジ時間 | 1,848 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 12 |
ソースコード
s=list(input())
num="1234567890"
n=len(s)
for i in range(n):
if s[i] in num:
s[:i]=s[:i][::-1]
print("".join(s))
exit()