結果

問題 No.400 鏡
ユーザー YamaKasa
提出日時 2018-05-04 17:38:06
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 2,029 ms
コンパイル使用メモリ 74,060 KB
実行使用メモリ 41,600 KB
最終ジャッジ日時 2024-06-28 01:12:53
合計ジャッジ時間 4,192 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 3
other AC * 4 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String s = scan.next();
		scan.close();
		for(int i = 0; i < s.length(); i++) {
			char c = s.charAt(i);
			if(c == '>') {
				System.out.print("<");
			}else {
				System.out.print(">");
			}
		}
		System.out.println();
	}
}
0