結果
問題 | No.1569 Nixoracci's Number |
ユーザー |
|
提出日時 | 2021-06-27 13:07:43 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 45 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 166 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 58,496 KB |
最終ジャッジ日時 | 2024-06-27 13:23:04 |
合計ジャッジ時間 | 1,993 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
n, k = map(int, input().split())a = list(map(int, input().split()))for i in range(1000000):x = 0for j in range(1, n + 1):x ^= a[-j]a.append(x)l = len(a)if l % 2 == 0 and a[-(l // 2):] == a[:(l // 2)]:breakshuki = l // 2print(a[(k - 1) % shuki])