結果

問題 No.400 鏡
ユーザー itezpaceitezpace
提出日時 2016-08-15 15:11:06
言語 Java21
(openjdk 21)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 423 bytes
コンパイル時間 2,303 ms
コンパイル使用メモリ 73,228 KB
実行使用メモリ 36,736 KB
最終ジャッジ日時 2024-04-25 07:24:00
合計ジャッジ時間 3,568 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
36,504 KB
testcase_01 AC 48 ms
36,488 KB
testcase_02 AC 49 ms
36,584 KB
testcase_03 AC 48 ms
36,632 KB
testcase_04 AC 48 ms
36,720 KB
testcase_05 AC 49 ms
36,260 KB
testcase_06 AC 49 ms
36,608 KB
testcase_07 AC 49 ms
36,632 KB
testcase_08 AC 48 ms
36,120 KB
testcase_09 AC 50 ms
36,456 KB
testcase_10 AC 50 ms
36,584 KB
testcase_11 AC 50 ms
36,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.lang.*;
import java.io.*;

class Yuki400{
  public static void main(String[] args) throws IOException {
    DataInputStream d=new DataInputStream(System.in);
    String s=d.readLine();
    for(int i=s.length()-1; i>=0; --i){
      char a;
      a=s.charAt(i);
      if(a=='<'){
        System.out.print('>');
      } else if(a=='>'){
        System.out.print('<');
      }
    }
    System.out.println();
  }
}
0