結果
| 問題 |
No.643 Two Operations No.2
|
| コンテスト | |
| ユーザー |
ほっしいー
|
| 提出日時 | 2018-02-12 23:12:46 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 377 bytes |
| コンパイル時間 | 3,825 ms |
| コンパイル使用メモリ | 74,932 KB |
| 実行使用メモリ | 41,648 KB |
| 最終ジャッジ日時 | 2024-11-26 03:25:05 |
| 合計ジャッジ時間 | 5,208 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 WA * 2 |
ソースコード
import java.util.Scanner;
public class No643 {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
int x=Integer.parseInt(sc.next());
int y=Integer.parseInt(sc.next());
if(x==y) {
System.out.println(0);
}else if(x==0) {
System.out.println(2);
}else if(y==0) {
System.out.println(1);
}else {
System.out.println(-1);
}
}
}
ほっしいー