結果
| 問題 |
No.8032 Unavailability of Inequality Signs
|
| コンテスト | |
| ユーザー |
ziita
|
| 提出日時 | 2018-04-01 22:23:29 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 562 bytes |
| コンパイル時間 | 2,153 ms |
| コンパイル使用メモリ | 74,484 KB |
| 実行使用メモリ | 41,536 KB |
| 最終ジャッジ日時 | 2024-06-26 05:53:11 |
| 合計ジャッジ時間 | 5,442 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 7 |
ソースコード
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i = 0; i < n; i++){
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));
}
}
}
ziita