結果
問題 | No.1569 Nixoracci's Number |
ユーザー |
|
提出日時 | 2021-06-27 14:06:01 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 467 bytes |
コンパイル時間 | 1,137 ms |
コンパイル使用メモリ | 82,452 KB |
実行使用メモリ | 62,544 KB |
最終ジャッジ日時 | 2024-06-27 13:24:42 |
合計ジャッジ時間 | 2,205 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
# import sys # input = sys.stdin.readline def mp():return map(int,input().split()) def lmp():return list(map(int,input().split())) import math import bisect from copy import deepcopy as dc from itertools import accumulate from collections import Counter, defaultdict, deque def ceil(U,V):return (U+V-1)//V def modf1(N,MOD):return (N-1)%MOD+1 inf = int(1e10) mod = int(1e9+7) n,k = mp() a = lmp() c = 0 for i in a:c^=i a.append(c) n += 1 u = modf1(k,n) print(a[u-1])