結果

問題 No.1569 Nixoracci's Number
ユーザー ntudantuda
提出日時 2021-09-07 22:39:04
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 427 ms
コンパイル使用メモリ 87,188 KB
実行使用メモリ 71,612 KB
最終ジャッジ日時 2023-08-25 16:16:17
合計ジャッジ時間 4,457 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,500 KB
testcase_01 AC 74 ms
71,364 KB
testcase_02 AC 75 ms
71,320 KB
testcase_03 AC 74 ms
71,368 KB
testcase_04 AC 74 ms
71,288 KB
testcase_05 AC 73 ms
71,320 KB
testcase_06 AC 73 ms
71,368 KB
testcase_07 AC 73 ms
71,568 KB
testcase_08 AC 74 ms
71,404 KB
testcase_09 AC 73 ms
71,612 KB
testcase_10 AC 73 ms
71,224 KB
testcase_11 AC 75 ms
71,432 KB
testcase_12 AC 73 ms
71,308 KB
testcase_13 AC 74 ms
71,308 KB
testcase_14 AC 74 ms
71,312 KB
testcase_15 AC 74 ms
71,504 KB
testcase_16 AC 74 ms
71,368 KB
testcase_17 AC 74 ms
71,184 KB
testcase_18 AC 74 ms
71,400 KB
testcase_19 AC 73 ms
71,252 KB
testcase_20 AC 73 ms
71,336 KB
testcase_21 AC 73 ms
71,356 KB
testcase_22 AC 75 ms
71,348 KB
testcase_23 AC 74 ms
71,396 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
Ax = A[0]
for i in range(1, N):
    Ax ^= A[i]
A.append(Ax)
print(A[(K-1)%(N+1)])
0