結果
問題 |
No.1569 Nixoracci's Number
|
ユーザー |
![]() |
提出日時 | 2023-04-14 12:14:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 492 bytes |
コンパイル時間 | 3,990 ms |
コンパイル使用メモリ | 251,728 KB |
最終ジャッジ日時 | 2025-02-12 06:04:35 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 1 WA * 20 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/all> using namespace std; using namespace atcoder; using ll=long long; using ld=long double; ld pie=3.141592653589793; ll inf=144494; ll mod=1000000007; int main(){ ll n,k; cin >> n >> k; k--; vector<ll>a(n); ll x=0; for (ll i = 0; i < n; i++) { cin >> a[i]; x^=a[i]; } for (ll i = 0; i < n; i++) { a.push_back(x); x^=x; x^=a[i]; } cout << a[k%(2*n)] << endl; }