結果
問題 | No.400 鏡 |
ユーザー |
|
提出日時 | 2016-08-15 15:11:06 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 56 ms / 2,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 2,592 ms |
コンパイル使用メモリ | 75,016 KB |
実行使用メモリ | 49,940 KB |
最終ジャッジ日時 | 2024-11-07 17:42:02 |
合計ジャッジ時間 | 4,089 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 8 |
ソースコード
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();}}