結果
問題 | No.1569 Nixoracci's Number |
ユーザー |
![]() |
提出日時 | 2021-06-27 13:02:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 8 ms / 2,000 ms |
コード長 | 431 bytes |
コンパイル時間 | 6,380 ms |
コンパイル使用メモリ | 250,292 KB |
最終ジャッジ日時 | 2025-01-22 13:53:57 |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <stdio.h>#include <bits/stdc++.h>#include <atcoder/all>using namespace atcoder;using mint = modint998244353;using namespace std;#define rep(i,n) for (int i = 0; i < (n); ++i)#define Inf 1000000001int main(){int N;long long K;cin>>N>>K;vector<long long> A(N);long long t = 0LL;rep(i,N){cin>>A[i];t ^= A[i];}A.push_back(t);K--;K %= A.size();cout<<A[K]<<endl;return 0;}