結果

問題 No.1569 Nixoracci's Number
ユーザー Maboy
提出日時 2021-06-27 16:11:04
言語 Swift
(6.0.3)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 2,194 ms
コンパイル使用メモリ 130,788 KB
実行使用メモリ 9,344 KB
最終ジャッジ日時 2024-06-25 11:49:07
合計ジャッジ時間 2,781 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 20 WA * 1
権限があれば一括ダウンロードができます

ソースコード

diff #

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