結果
| 問題 |
No.2814 Block Game
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2024-07-19 23:08:53 |
| 言語 | cLay (20241019-1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| コンパイル時間 | 3,579 ms |
| コンパイル使用メモリ | 173,972 KB |
| 実行使用メモリ | 9,160 KB |
| 最終ジャッジ日時 | 2024-07-19 23:09:08 |
| 合計ジャッジ時間 | 5,734 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | WA * 20 |
ソースコード
ll@t;
rep(t){
ll@n;
string@s;
ll o=s[0]=='O';
ll a=1ull<<__builtin_popcountll(n-1);
ll b=n+1>>1;
if(a>b)swap(a,b);
if(n==1){
wt(o?"Alice":"Bob");
}else if(n&1){
wt("Alice");
}else{
wt(a&1^o?"Bob":"Alice");
}
}
tails