結果
| 問題 | No.3845 eval("G4M3") |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-12-03 05:10:29 |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 678 bytes |
| 記録 | |
| コンパイル時間 | 5,099 ms |
| コンパイル使用メモリ | 353,360 KB |
| 実行使用メモリ | 9,928 KB |
| 最終ジャッジ日時 | 2026-12-03 05:10:39 |
| 合計ジャッジ時間 | 7,312 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 17 WA * 32 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define int int64_t
#define cat cerr
#ifndef MEOW
#define cerr if (0) cerr
#endif
void setup(){
}
void solve(){
int n;
cin>>n;
string s;
cin>>s;
int pp = 0;
for (int i=0;i+1<n;i++){
if ((s[i]-'0')%2||(s[i+1]-'0')%2){
pp++;
}
}
if (pp%2){
cout<<"Alice\n";
}
else{
cout<<"Bob\n";
}
}
signed main(){
ios::sync_with_stdio(0);
cin.tie(0);
int t=1;
cin>>t;
setup();
while (t--){
solve();
}
}
//What would Chika do?
//What would Chika do?
//What would Chika do?
//What would Chika do?
//What would Chika do?