結果
問題 | No.3032 Unavailability of Inequality Signs |
ユーザー | uafr_cs |
提出日時 | 2018-04-01 22:51:37 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 161 ms / 2,000 ms |
コード長 | 473 bytes |
コンパイル時間 | 1,939 ms |
コンパイル使用メモリ | 71,800 KB |
実行使用メモリ | 56,016 KB |
最終ジャッジ日時 | 2023-09-08 12:49:01 |
合計ジャッジ時間 | 4,117 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 120 ms
55,892 KB |
testcase_01 | AC | 121 ms
55,996 KB |
testcase_02 | AC | 120 ms
55,608 KB |
testcase_03 | AC | 121 ms
53,752 KB |
testcase_04 | AC | 120 ms
55,768 KB |
testcase_05 | AC | 137 ms
55,884 KB |
testcase_06 | AC | 142 ms
55,656 KB |
testcase_07 | AC | 133 ms
56,016 KB |
testcase_08 | AC | 145 ms
55,992 KB |
testcase_09 | AC | 161 ms
55,848 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final int N = sc.nextInt(); for(int i = 0; i != N; i++){ final int a = sc.nextInt(); final int b = sc.nextInt(); if(Integer.signum(a - b) == 1){ System.out.println((char)(0x3e)); }else if(Integer.signum(a - b) == 0){ System.out.println((char)(0x3d)); }else{ System.out.println((char)(0x3c)); } } } }