結果

問題 No.2059 Odd Move Nim
ユーザー kotatsugame
提出日時 2022-08-26 21:51:38
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 177 bytes
コンパイル時間 494 ms
コンパイル使用メモリ 63,540 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-15 11:05:08
合計ジャッジ時間 2,396 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
using namespace std;
int N,A[2<<17];
main()
{
	cin>>N;
	int X=0;
	for(int i=0;i<N;i++)
	{
		cin>>A[i];
		if(i%2)X^=A[i];
	}
	cout<<(X?"Alice":"Bob")<<endl;
}
0