結果
| 問題 | 
                            No.3108 Luke or Bishop
                             | 
                    
| コンテスト | |
| ユーザー | 
                             ks2m
                         | 
                    
| 提出日時 | 2025-04-18 20:02:06 | 
| 言語 | Java  (openjdk 23)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 327 bytes | 
| コンパイル時間 | 1,793 ms | 
| コンパイル使用メモリ | 84,908 KB | 
| 実行使用メモリ | 54,276 KB | 
| 最終ジャッジ日時 | 2025-04-18 20:02:17 | 
| 合計ジャッジ時間 | 5,815 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 25 WA * 1 | 
ソースコード
import java.util.Scanner;
public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		int y = sc.nextInt();
		sc.close();
		if (x == y || -x == y || x == 0 || y == 0) {
			System.out.println(1);
		} else {
			System.out.println(2);
		}
	}
}
            
            
            
        
            
ks2m