結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
publfl2
|
| 提出日時 | 2022-08-26 22:15:55 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 217 bytes |
| コンパイル時間 | 263 ms |
| コンパイル使用メモリ | 31,616 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 22:52:33 |
| 合計ジャッジ時間 | 1,615 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 4 |
ソースコード
#include <stdio.h>
int x[200010];
int main()
{
int a;
scanf("%d",&a);
for(int i=1;i<=a;i++) scanf("%d",&x[i]);
int s = 0;
for(int i=2;i<=a;i+=2) s += x[i]%2;
if(s%2==1) printf("Alice");
else printf("Bob");
}
publfl2