結果

問題 No.400 鏡
ユーザー YamaKasaYamaKasa
提出日時 2018-05-04 17:38:06
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 2,040 ms
コンパイル使用メモリ 71,808 KB
実行使用メモリ 56,352 KB
最終ジャッジ日時 2023-09-10 09:45:24
合計ジャッジ時間 4,417 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,644 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 118 ms
55,716 KB
testcase_05 AC 122 ms
55,720 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 119 ms
55,668 KB
testcase_11 AC 121 ms
55,640 KB
権限があれば一括ダウンロードができます

ソースコード

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