結果

問題 No.3035 文字列のみの反転
ユーザー 高橋ゆに
提出日時 2025-02-28 21:45:36
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 245 bytes
コンパイル時間 585 ms
コンパイル使用メモリ 82,248 KB
実行使用メモリ 67,656 KB
最終ジャッジ日時 2025-02-28 21:45:52
合計ジャッジ時間 1,549 ms
ジャッジサーバーID
(参考情報)
judge6 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
	S = input()
	ans = []
	for i in range(len(S)):
		ans.append(S[i])
		if i != N - 1 and not S[i] in '0123456789' and S[i + 1] in '0123456789':
			ans.reverse()
	ans = ''.join(ans)
	print(ans)
    
if __name__ == '__main__':
    main()
0