結果

問題 No.400 鏡
ユーザー fal_rndfal_rnd
提出日時 2016-10-29 00:34:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 126 ms / 2,000 ms
コード長 359 bytes
コンパイル時間 2,275 ms
コンパイル使用メモリ 74,340 KB
実行使用メモリ 41,284 KB
最終ジャッジ日時 2024-05-03 08:30:10
合計ジャッジ時間 4,887 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
41,284 KB
testcase_01 AC 108 ms
39,772 KB
testcase_02 AC 110 ms
39,964 KB
testcase_03 AC 109 ms
40,048 KB
testcase_04 AC 123 ms
41,148 KB
testcase_05 AC 121 ms
41,200 KB
testcase_06 AC 126 ms
41,060 KB
testcase_07 AC 118 ms
40,992 KB
testcase_08 AC 116 ms
40,968 KB
testcase_09 AC 109 ms
39,804 KB
testcase_10 AC 123 ms
41,108 KB
testcase_11 AC 109 ms
40,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	static Scanner s = new Scanner(System.in);
	public static void main(String[] args) {
		String in = s.next();
		StringBuilder r = new StringBuilder(in.length());
		for(int i=in.length()-1;i>=0;--i) {
			char c = in.charAt(i);
			if(c=='>')
				r.append('<');
			else
				r.append('>');
		}
		System.out.println(r.toString());
	}
}
0