結果

問題 No.400 鏡
ユーザー kohaku_kohakukohaku_kohaku
提出日時 2016-11-10 02:47:47
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 2,000 ms
コード長 466 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 73,780 KB
実行使用メモリ 56,616 KB
最終ジャッジ日時 2023-08-16 16:41:02
合計ジャッジ時間 4,119 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 108 ms
56,164 KB
testcase_01 AC 108 ms
56,516 KB
testcase_02 AC 105 ms
55,900 KB
testcase_03 AC 110 ms
55,808 KB
testcase_04 AC 114 ms
56,408 KB
testcase_05 AC 117 ms
55,996 KB
testcase_06 AC 114 ms
55,840 KB
testcase_07 AC 111 ms
56,352 KB
testcase_08 AC 112 ms
55,712 KB
testcase_09 AC 107 ms
56,120 KB
testcase_10 AC 112 ms
56,048 KB
testcase_11 AC 111 ms
56,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String S = sc.nextLine();
        String [] arr = S.split("");
        int N = arr.length;
        String R = "";
        for(int i=0; i<N; i++){
            if( "<".equals(arr[N-1-i]) ){
                R = R + ">";
            }else{
                R = R + "<";
            }
        }
        System.out.println(R);
    }
}
0