結果

問題 No.1456 Range Xor
ユーザー 👑 tatt61880tatt61880
提出日時 2021-04-03 14:20:14
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 415 bytes
コンパイル時間 2,126 ms
コンパイル使用メモリ 147,360 KB
実行使用メモリ 8,620 KB
最終ジャッジ日時 2023-10-14 18:15:26
合計ジャッジ時間 7,002 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 123 ms
8,420 KB
testcase_04 AC 119 ms
8,432 KB
testcase_05 AC 129 ms
8,620 KB
testcase_06 AC 121 ms
8,608 KB
testcase_07 AC 126 ms
8,456 KB
testcase_08 AC 121 ms
8,464 KB
testcase_09 AC 131 ms
8,556 KB
testcase_10 AC 127 ms
8,596 KB
testcase_11 AC 19 ms
4,612 KB
testcase_12 AC 9 ms
4,352 KB
testcase_13 AC 34 ms
5,384 KB
testcase_14 AC 34 ms
5,132 KB
testcase_15 AC 95 ms
7,488 KB
testcase_16 AC 88 ms
7,264 KB
testcase_17 AC 47 ms
5,828 KB
testcase_18 AC 33 ms
5,048 KB
testcase_19 AC 72 ms
6,588 KB
testcase_20 AC 87 ms
7,400 KB
testcase_21 AC 67 ms
6,664 KB
testcase_22 AC 72 ms
6,860 KB
testcase_23 AC 37 ms
5,496 KB
testcase_24 AC 16 ms
4,584 KB
testcase_25 AC 30 ms
5,192 KB
testcase_26 AC 53 ms
5,940 KB
testcase_27 AC 82 ms
7,092 KB
testcase_28 AC 25 ms
4,824 KB
testcase_29 AC 110 ms
7,900 KB
testcase_30 AC 114 ms
8,308 KB
testcase_31 AC 23 ms
4,932 KB
testcase_32 AC 20 ms
4,604 KB
testcase_33 AC 42 ms
5,552 KB
testcase_34 AC 112 ms
8,152 KB
testcase_35 AC 61 ms
6,172 KB
testcase_36 AC 127 ms
8,396 KB
testcase_37 AC 106 ms
7,720 KB
testcase_38 AC 16 ms
4,612 KB
testcase_39 AC 85 ms
7,032 KB
testcase_40 AC 84 ms
7,148 KB
testcase_41 AC 4 ms
4,348 KB
testcase_42 AC 11 ms
4,348 KB
testcase_43 AC 2 ms
4,348 KB
testcase_44 AC 2 ms
4,348 KB
testcase_45 AC 2 ms
4,352 KB
testcase_46 AC 2 ms
4,352 KB
testcase_47 AC 2 ms
4,352 KB
testcase_48 AC 2 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var k: bit64 :: cui@inputInt() $ bit64
	var map: dict<bit64, bool> :: #dict<bit64, bool>
	do map.add(0b64, true)
	var xor: bit64 :: 0b64
	var ans: bool :: false
	for(1, n)
		var a: bit64 :: cui@inputInt() $ bit64
		do xor :: xor.xor(a)
		do map.add(xor, true)
		if(map.get(xor.xor(k), &))
			do ans :: true
		end if
	end for
	do cui@print(ans ?("Yes\n", "No\n"))
end func
0