結果

問題 No.400 鏡
ユーザー yuma_shobon1108yuma_shobon1108
提出日時 2016-11-30 12:58:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 119 ms / 2,000 ms
コード長 366 bytes
コンパイル時間 1,963 ms
コンパイル使用メモリ 71,220 KB
実行使用メモリ 56,216 KB
最終ジャッジ日時 2023-08-18 10:01:09
合計ジャッジ時間 4,295 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,488 KB
testcase_01 AC 115 ms
55,184 KB
testcase_02 AC 113 ms
55,484 KB
testcase_03 AC 116 ms
55,604 KB
testcase_04 AC 117 ms
55,756 KB
testcase_05 AC 118 ms
55,424 KB
testcase_06 AC 114 ms
56,216 KB
testcase_07 AC 119 ms
55,840 KB
testcase_08 AC 118 ms
55,768 KB
testcase_09 AC 117 ms
53,364 KB
testcase_10 AC 110 ms
55,592 KB
testcase_11 AC 116 ms
55,532 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Question400
{
	public static void main(String[] str)
	{
	
		Scanner scan = new Scanner(System.in);
		StringBuilder strbl = new StringBuilder();
		
		String s = scan.next();
		
		for(int i=0; i<s.length(); i++){
			if(s.charAt(i)=='<')
				strbl.append(">");
			else
				strbl.append("<");
		}
		
		System.out.println(strbl.reverse());
	}
}
0