結果

問題 No.3112 Decrement or Mod Game
ユーザー ks2m
提出日時 2025-04-18 20:46:26
言語 Java
(openjdk 23)
結果
AC  
実行時間 152 ms / 2,000 ms
コード長 344 bytes
コンパイル時間 2,529 ms
コンパイル使用メモリ 76,688 KB
実行使用メモリ 54,504 KB
最終ジャッジ日時 2025-04-18 20:46:41
合計ジャッジ時間 14,542 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		long a = sc.nextLong();
		long b = sc.nextLong();
		sc.close();

		if (a == b || a >= b + 2 || b == 1 || a == 1) {
			System.out.println("Alice");
		} else {
			System.out.println("Bob");
		}
	}
}
0