結果

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

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		int n = in.nextInt();
		int i = 0;
		while(i!=n){
            int a = in.nextInt();
            int b = in.nextInt();
            String s = String.valueOf(a-b);
            if(s.charAt(0)=='-'){
                System.out.println((char)(60));
            }
            else if(s.charAt(0)=='0'){
                System.out.println((char)(61));
            }
            else System.out.println((char)(62));
            i++;
        } 
		
	}
}
0