結果

問題 No.400 鏡
ユーザー YOSHIYOSHI
提出日時 2021-03-13 22:33:36
言語 Java21
(openjdk 21)
結果
AC  
実行時間 45 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 3,484 ms
コンパイル使用メモリ 73,468 KB
実行使用メモリ 37,112 KB
最終ジャッジ日時 2024-04-23 12:40:06
合計ジャッジ時間 4,502 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
37,084 KB
testcase_01 AC 43 ms
36,372 KB
testcase_02 AC 43 ms
36,324 KB
testcase_03 AC 42 ms
36,728 KB
testcase_04 AC 44 ms
36,712 KB
testcase_05 AC 43 ms
36,508 KB
testcase_06 AC 44 ms
36,800 KB
testcase_07 AC 44 ms
36,956 KB
testcase_08 AC 43 ms
36,744 KB
testcase_09 AC 42 ms
37,112 KB
testcase_10 AC 44 ms
36,772 KB
testcase_11 AC 45 ms
36,728 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(cArr);
	}
}
0