結果

問題 No.400 鏡
ユーザー mits58mits58
提出日時 2016-07-23 00:27:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 1,753 ms
コンパイル使用メモリ 74,680 KB
実行使用メモリ 41,332 KB
最終ジャッジ日時 2024-04-24 03:18:14
合計ジャッジ時間 3,560 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 104 ms
41,020 KB
testcase_01 AC 103 ms
40,952 KB
testcase_02 AC 93 ms
40,220 KB
testcase_03 AC 112 ms
41,332 KB
testcase_04 AC 104 ms
40,828 KB
testcase_05 AC 100 ms
41,100 KB
testcase_06 AC 103 ms
41,120 KB
testcase_07 AC 93 ms
40,164 KB
testcase_08 AC 94 ms
39,996 KB
testcase_09 AC 103 ms
41,124 KB
testcase_10 AC 100 ms
41,100 KB
testcase_11 AC 105 ms
41,104 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			String s=(new StringBuilder(sc.next())).reverse().toString();
			for(int i=0;i<s.length();i++) System.out.print(s.charAt(i)=='<' ? '>' : '<');
			System.out.println();
		}
	}
}
0