結果

問題 No.400 鏡
ユーザー nCk_cvnCk_cv
提出日時 2016-08-27 15:00:56
言語 Java21
(openjdk 21)
結果
AC  
実行時間 129 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 2,519 ms
コンパイル使用メモリ 76,200 KB
実行使用メモリ 54,480 KB
最終ジャッジ日時 2024-04-26 06:23:23
合計ジャッジ時間 4,731 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 101 ms
52,948 KB
testcase_01 AC 117 ms
54,252 KB
testcase_02 AC 112 ms
53,820 KB
testcase_03 AC 122 ms
53,896 KB
testcase_04 AC 119 ms
53,956 KB
testcase_05 AC 118 ms
54,172 KB
testcase_06 AC 124 ms
54,008 KB
testcase_07 AC 128 ms
54,124 KB
testcase_08 AC 125 ms
54,092 KB
testcase_09 AC 128 ms
54,016 KB
testcase_10 AC 129 ms
54,480 KB
testcase_11 AC 113 ms
53,128 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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