結果

問題 No.3032 Unavailability of Inequality Signs
ユーザー fal_rndfal_rnd
提出日時 2018-04-03 18:10:31
言語 Java21
(openjdk 21)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 351 bytes
コンパイル時間 1,953 ms
コンパイル使用メモリ 71,848 KB
実行使用メモリ 56,324 KB
最終ジャッジ日時 2023-09-08 15:30:22
合計ジャッジ時間 4,144 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,212 KB
testcase_01 AC 123 ms
55,888 KB
testcase_02 AC 123 ms
56,020 KB
testcase_03 AC 124 ms
56,092 KB
testcase_04 AC 123 ms
56,100 KB
testcase_05 AC 138 ms
56,068 KB
testcase_06 AC 144 ms
55,888 KB
testcase_07 AC 133 ms
55,888 KB
testcase_08 AC 139 ms
56,324 KB
testcase_09 AC 151 ms
56,312 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		for(int i=s.nextInt();i!=0;--i) {
			char v=0;
			switch(Integer.compare(s.nextInt(),s.nextInt())){
			case -1:
				v=60;
				break;
			case 0:
				v=61;
				break;
			case 1:
				v=62;
				break;
			}
			System.out.println(v);
		}
	}
}
0