結果
| 問題 |
No.2059 Odd Move Nim
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-08-21 18:12:25 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 275 bytes |
| コンパイル時間 | 808 ms |
| コンパイル使用メモリ | 29,056 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-10-13 21:16:48 |
| 合計ジャッジ時間 | 3,016 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 17 WA * 4 |
ソースコード
#include <stdio.h>
int main()
{
int i, N, A[200001];
scanf("%d", &N);
for (i = 1; i <= N; i++) scanf("%d", &(A[i]));
int x = 0;
for (i = 2; i <= N; i += 2) if (A[i] % 2 != 0) x ^= 1;
if (x == 0) printf("Bob\n");
else printf("Alice\n");
fflush(stdout);
return 0;
}