結果

問題 No.3112 Decrement or Mod Game
ユーザー 37zigen
提出日時 2025-04-19 13:37:24
言語 Java
(openjdk 23)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 554 bytes
コンパイル時間 7,346 ms
コンパイル使用メモリ 77,396 KB
実行使用メモリ 54,604 KB
最終ジャッジ日時 2025-04-19 13:37:42
合計ジャッジ時間 12,665 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Arrays;
import java.util.Scanner;

public class Main implements Runnable {
    public static void main(String[] args) {
        new Thread(null, new Main(), "", 512 * 1024 * 1024).start();
    }
    
    public void run() {
    	Scanner sc=new Scanner(System.in);
    	long A=sc.nextLong();
    	long B=sc.nextLong();
    	if(A==B||A==1||A-1>B||B==1) {
    		System.out.println("Alice");
    	} else {
    		System.out.println("Bob");
    	}
    }
    
    void tr(Object...objects) {System.out.println(Arrays.deepToString(objects));}
}
0