結果

問題 No.400 鏡
ユーザー mits58mits58
提出日時 2016-07-23 00:27:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 326 bytes
コンパイル時間 1,954 ms
コンパイル使用メモリ 72,028 KB
実行使用メモリ 56,472 KB
最終ジャッジ日時 2023-08-06 07:07:56
合計ジャッジ時間 4,125 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 116 ms
55,364 KB
testcase_01 AC 115 ms
56,080 KB
testcase_02 AC 115 ms
53,772 KB
testcase_03 AC 117 ms
56,284 KB
testcase_04 AC 115 ms
56,472 KB
testcase_05 AC 114 ms
55,592 KB
testcase_06 AC 114 ms
55,920 KB
testcase_07 AC 116 ms
56,104 KB
testcase_08 AC 116 ms
56,332 KB
testcase_09 AC 116 ms
56,240 KB
testcase_10 AC 117 ms
56,176 KB
testcase_11 AC 118 ms
55,552 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