結果
問題 | No.2666 Decreasing Modulo Nim |
ユーザー |
|
提出日時 | 2023-12-29 18:32:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 80 ms / 2,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 299 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 101,336 KB |
最終ジャッジ日時 | 2024-09-28 17:42:19 |
合計ジャッジ時間 | 5,092 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 55 |
ソースコード
from sys import stderrn, m = map(int, input().split())xb = xc = 0for v in map(int, input().split()):b, c = divmod(v, m)xb ^= bxc ^= cprint(f'Xor B = {xb}', file=stderr)print(f'Xor C = {xc}', file=stderr)print("Alice" if xb or xc else "Bob")