結果

問題 No.1751 Fortune Nim
ユーザー monnu
提出日時 2021-11-20 12:50:32
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 405 bytes
コンパイル時間 4,895 ms
コンパイル使用メモリ 220,796 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2025-01-03 13:33:58
合計ジャッジ時間 8,869 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other WA * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using ll=long long;
using Graph=vector<vector<int>>;
#define INF 1000000000000000000
#define MOD 998244353
#define MAX 1000000

int main(){
  int N;
  cin>>N;
  int x=0;
  for(int i=0;i<N;i++){
    int a;
    cin>>a;
    x^=a;
  }
  if(x>0){
    cout<<665496236<<'\n';
  }else{
    cout<<776412275<<'\n';
  }
}
0