結果
| 問題 |
No.2814 Block Game
|
| コンテスト | |
| ユーザー |
tails
|
| 提出日時 | 2024-07-19 23:19:55 |
| 言語 | cLay (20241019-1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 211 bytes |
| コンパイル時間 | 2,927 ms |
| コンパイル使用メモリ | 172,084 KB |
| 実行使用メモリ | 5,504 KB |
| 最終ジャッジ日時 | 2024-07-19 23:20:04 |
| 合計ジャッジ時間 | 4,976 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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(n==1){
wt(o?"Alice":"Bob");
}else if(n&1){
wt("Alice");
}else{
wt((a|b)&1^o?"Alice":"Bob");
}
}
tails