結果
問題 | No.3032 Unavailability of Inequality Signs |
ユーザー | kohaku_kohaku |
提出日時 | 2018-04-01 22:53:52 |
言語 | Java19 (openjdk 21) |
結果 |
AC
|
実行時間 | 158 ms / 2,000 ms |
コード長 | 829 bytes |
コンパイル時間 | 2,347 ms |
コンパイル使用メモリ | 72,488 KB |
実行使用メモリ | 56,068 KB |
最終ジャッジ日時 | 2023-09-08 12:49:43 |
合計ジャッジ時間 | 4,289 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge15 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 128 ms
55,908 KB |
testcase_01 | AC | 126 ms
55,880 KB |
testcase_02 | AC | 126 ms
55,524 KB |
testcase_03 | AC | 126 ms
55,656 KB |
testcase_04 | AC | 123 ms
56,068 KB |
testcase_05 | AC | 141 ms
55,640 KB |
testcase_06 | AC | 150 ms
56,068 KB |
testcase_07 | AC | 136 ms
55,760 KB |
testcase_08 | AC | 143 ms
55,712 KB |
testcase_09 | AC | 158 ms
56,044 KB |
ソースコード
import java.util.*; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int i = 0; while(true) { int a = sc.nextInt(); int b = sc.nextInt(); int judge = judge(a,b); if(judge == 0) { System.out.println("="); } else if(judge == 1){ System.out.println((char)(62)); } else { System.out.println((char)(60)); } i++; if(i == n) break; } } static int judge(int a, int b) { BigInteger as = new BigInteger(String.valueOf(a)); BigInteger bs = new BigInteger(String.valueOf(b)); return as.compareTo(bs); } }