結果
問題 |
No.3035 文字列のみの反転
|
ユーザー |
![]() |
提出日時 | 2025-02-28 21:43:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 242 bytes |
コンパイル時間 | 268 ms |
コンパイル使用メモリ | 82,188 KB |
実行使用メモリ | 53,824 KB |
最終ジャッジ日時 | 2025-02-28 21:43:55 |
合計ジャッジ時間 | 1,563 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 12 |
ソースコード
def main(): S = input() ans = [] for i in range(len(S) - 1): ans.append(S[i]) if not S[i] in '0123456789' and S[i + 1] in '0123456789': ans.reverse() ans = ''.join(ans) print(ans) if __name__ == '__main__': main()