結果
| 問題 |
No.1569 Nixoracci's Number
|
| コンテスト | |
| ユーザー |
SidewaysOwl
|
| 提出日時 | 2021-10-17 07:16:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 151 bytes |
| コンパイル時間 | 216 ms |
| コンパイル使用メモリ | 82,076 KB |
| 実行使用メモリ | 53,424 KB |
| 最終ジャッジ日時 | 2024-09-17 19:37:56 |
| 合計ジャッジ時間 | 2,170 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
n,k = map(int,input().split())
a = list(map(int,input().split()))
a_xor = 0
for i in range(n):
a_xor ^= a[i]
a.append(a_xor)
print(a[k % (n+1)-1])
SidewaysOwl