結果

問題 No.400 鏡
ユーザー darknightdarknight
提出日時 2016-11-14 20:59:13
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 73,352 KB
実行使用メモリ 56,404 KB
最終ジャッジ日時 2023-08-17 06:46:13
合計ジャッジ時間 4,474 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
55,820 KB
testcase_01 AC 113 ms
56,404 KB
testcase_02 AC 114 ms
56,152 KB
testcase_03 AC 113 ms
55,396 KB
testcase_04 AC 113 ms
56,052 KB
testcase_05 AC 114 ms
55,860 KB
testcase_06 AC 124 ms
56,036 KB
testcase_07 AC 111 ms
56,044 KB
testcase_08 AC 115 ms
56,036 KB
testcase_09 AC 114 ms
56,072 KB
testcase_10 AC 114 ms
56,032 KB
testcase_11 AC 113 ms
56,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
 
public class Main {
	public static void main(String[] args) {
 
	Scanner sc  = new Scanner(System.in);
        
    int cnt = 0;

	int  i1 = 0 ,i2 = 0, i3 = 0;
	long L1 = 0, L2 = 0, L3 = 0;
	char ch;
	String str = "";
		

    String s1 = sc.next();
    char[] c1 = s1.toCharArray();

        for(int i=c1.length-1;i>=0;i--){
            
           if(c1[i]=='<') str += ">";
           if(c1[i]=='>') str += "<";
           
        }

        System.out.print(str);
        System.out.println();
	}
        
}
0