結果

問題 No.8032 Unavailability of Inequality Signs
ユーザー uafr_cs
提出日時 2018-04-01 22:51:37
言語 Java
(openjdk 23)
結果
AC  
実行時間 164 ms / 2,000 ms
コード長 473 bytes
コンパイル時間 2,109 ms
コンパイル使用メモリ 74,248 KB
実行使用メモリ 41,552 KB
最終ジャッジ日時 2024-06-26 06:02:06
合計ジャッジ時間 4,345 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

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));
			}
		}
	}
}
0