結果

問題 No.1569 Nixoracci's Number
ユーザー Nzt3Nzt3
提出日時 2022-10-13 16:37:40
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 2,021 ms
コンパイル使用メモリ 194,816 KB
最終ジャッジ日時 2025-02-08 02:42:52
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
const int mod=1e9+7;
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  int N,K;
  cin>>N>>K;
  vector<long long>A(N);
  for(auto &i:A)cin>>i;
  A.push_back(0);
  for(int i=0;i<N;i++){
    A[N]^=A[i];
  }
  cout<<A[(K-1)%(N+1)]<<'\n';
}
0