結果

問題 No.1569 Nixoracci's Number
ユーザー MaboyMaboy
提出日時 2021-06-27 16:11:04
言語 Swift
(5.10.0)
結果
WA  
実行時間 -
コード長 187 bytes
コンパイル時間 7,064 ms
コンパイル使用メモリ 127,756 KB
実行使用メモリ 8,320 KB
最終ジャッジ日時 2023-09-07 18:01:33
合計ジャッジ時間 7,290 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 4 ms
8,076 KB
testcase_03 AC 3 ms
8,216 KB
testcase_04 AC 4 ms
8,036 KB
testcase_05 AC 4 ms
8,180 KB
testcase_06 AC 4 ms
8,036 KB
testcase_07 AC 3 ms
8,108 KB
testcase_08 AC 3 ms
8,036 KB
testcase_09 AC 4 ms
8,012 KB
testcase_10 AC 4 ms
8,032 KB
testcase_11 AC 3 ms
8,096 KB
testcase_12 AC 4 ms
8,052 KB
testcase_13 AC 3 ms
8,180 KB
testcase_14 WA -
testcase_15 AC 3 ms
8,160 KB
testcase_16 AC 4 ms
8,036 KB
testcase_17 AC 3 ms
8,120 KB
testcase_18 AC 3 ms
8,020 KB
testcase_19 AC 3 ms
8,120 KB
testcase_20 AC 4 ms
8,120 KB
testcase_21 AC 3 ms
8,044 KB
testcase_22 AC 4 ms
8,272 KB
testcase_23 AC 4 ms
8,120 KB
権限があれば一括ダウンロードができます

ソースコード

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