結果

問題 No.1569 Nixoracci's Number
ユーザー irumo8202irumo8202
提出日時 2022-02-16 20:13:48
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 2,000 ms
コード長 152 bytes
コンパイル時間 731 ms
コンパイル使用メモリ 10,580 KB
実行使用メモリ 29,668 KB
最終ジャッジ日時 2023-09-11 17:14:24
合計ジャッジ時間 7,988 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 138 ms
29,464 KB
testcase_01 AC 139 ms
29,544 KB
testcase_02 AC 138 ms
29,648 KB
testcase_03 AC 139 ms
29,508 KB
testcase_04 AC 139 ms
29,524 KB
testcase_05 AC 137 ms
29,564 KB
testcase_06 AC 140 ms
29,668 KB
testcase_07 AC 136 ms
29,512 KB
testcase_08 AC 140 ms
29,556 KB
testcase_09 AC 140 ms
29,528 KB
testcase_10 AC 140 ms
29,572 KB
testcase_11 AC 136 ms
29,424 KB
testcase_12 AC 138 ms
29,556 KB
testcase_13 AC 137 ms
29,440 KB
testcase_14 AC 137 ms
29,516 KB
testcase_15 AC 138 ms
29,524 KB
testcase_16 AC 135 ms
29,536 KB
testcase_17 AC 141 ms
29,512 KB
testcase_18 AC 138 ms
29,652 KB
testcase_19 AC 138 ms
29,508 KB
testcase_20 AC 136 ms
29,600 KB
testcase_21 AC 140 ms
29,524 KB
testcase_22 AC 142 ms
29,508 KB
testcase_23 AC 141 ms
29,564 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

N, K = map(int, input().split())
A = list(map(int, input().split()))
A.append(np.bitwise_xor.reduce(A))

print(A[(K - 1) % (N + 1)])
0