結果

問題 No.3112 Decrement or Mod Game
ユーザー rururun
提出日時 2025-04-21 14:10:06
言語 Swift
(6.0.3)
結果
AC  
実行時間 7 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 2,600 ms
コンパイル使用メモリ 131,716 KB
実行使用メモリ 9,600 KB
最終ジャッジ日時 2025-04-21 14:10:11
合計ジャッジ時間 4,141 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 65
権限があれば一括ダウンロードができます

ソースコード

diff #

let ab = readLine()!.split(separator: " ").map{Int($0)!}
let (a,b) = (ab[0],ab[1])
if a >= b+2{
	print("Alice")
}else if a == b+1{
	print("Bob")	
}else if a == b{
	print("Alice")	
}else if a == 1{
	print("Alice")	
}else{
	print("Bob")	
}
0