結果

問題 No.400 鏡
ユーザー ohagi_1182ohagi_1182
提出日時 2017-10-13 16:57:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 134 ms / 2,000 ms
コード長 345 bytes
コンパイル時間 2,373 ms
コンパイル使用メモリ 76,696 KB
実行使用メモリ 41,244 KB
最終ジャッジ日時 2024-04-28 17:30:44
合計ジャッジ時間 4,622 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
41,084 KB
testcase_01 AC 134 ms
41,244 KB
testcase_02 AC 128 ms
41,048 KB
testcase_03 AC 134 ms
41,036 KB
testcase_04 AC 130 ms
41,104 KB
testcase_05 AC 128 ms
41,132 KB
testcase_06 AC 127 ms
41,044 KB
testcase_07 AC 129 ms
41,072 KB
testcase_08 AC 128 ms
40,976 KB
testcase_09 AC 127 ms
40,944 KB
testcase_10 AC 117 ms
40,268 KB
testcase_11 AC 130 ms
40,932 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String s1 = sc.next();
		String ans = "";
		for(int i = s1.length() - 1 ; i >= 0 ; i--) {
			if("<".equals("" + s1.charAt(i))) {
				ans += ">";
			} else {
				ans += "<";
			}
		}
		System.out.println(ans);
	}
}
0