結果

問題 No.1569 Nixoracci's Number
ユーザー Maboy
提出日時 2021-06-27 16:19:47
言語 Swift
(6.0.3)
結果
AC  
実行時間 9 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 9,633 ms
コンパイル使用メモリ 129,880 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-06-27 13:26:16
合計ジャッジ時間 10,589 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = readLine()!.split(separator: " ").map{Int($0)!}
var a = readLine()!.split(separator: " ").map{Int($0)!}
a += [a[0]]
for i in 1..<n[0]{
    a[n[0]] ^= a[i]
}
print(a[(n[1]-1)%(n[0]+1)])
0