結果

問題 No.400 鏡
ユーザー darknight
提出日時 2016-11-14 20:59:13
言語 Java
(openjdk 23)
結果
AC  
実行時間 135 ms / 2,000 ms
コード長 533 bytes
コンパイル時間 2,402 ms
コンパイル使用メモリ 76,040 KB
実行使用メモリ 41,420 KB
最終ジャッジ日時 2024-11-26 01:19:58
合計ジャッジ時間 4,733 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 8
権限があれば一括ダウンロードができます

ソースコード

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