結果

問題 No.400 鏡
ユーザー YOSHIYOSHI
提出日時 2021-03-13 22:28:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 54 ms / 2,000 ms
コード長 545 bytes
コンパイル時間 3,678 ms
コンパイル使用メモリ 74,824 KB
実行使用メモリ 37,356 KB
最終ジャッジ日時 2024-04-23 12:33:59
合計ジャッジ時間 4,999 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
37,012 KB
testcase_01 AC 52 ms
36,872 KB
testcase_02 AC 51 ms
36,932 KB
testcase_03 AC 51 ms
36,952 KB
testcase_04 AC 52 ms
37,000 KB
testcase_05 AC 53 ms
37,356 KB
testcase_06 AC 50 ms
37,156 KB
testcase_07 AC 54 ms
36,884 KB
testcase_08 AC 52 ms
37,080 KB
testcase_09 AC 53 ms
36,964 KB
testcase_10 AC 51 ms
36,904 KB
testcase_11 AC 52 ms
36,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000400_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String s = br.readLine();
		int sLen = s.length();
		char[] cArr = new char[sLen];
		for(int i = sLen - 1; 0 <= i; i--) {
			if(s.charAt(i) == '<') {
				cArr[sLen - 1 - i] = '>';
			} else {
				cArr[sLen - 1 - i] = '<';
			}
		}
		System.out.println(new String(cArr));
	}
}
0