結果

問題 No.1456 Range Xor
ユーザー 👑 tatt61880tatt61880
提出日時 2021-04-03 14:11:32
言語 Kuin
(KuinC++ v.2021.9.17)
結果
WA  
実行時間 -
コード長 397 bytes
コンパイル時間 2,117 ms
コンパイル使用メモリ 148,364 KB
実行使用メモリ 8,632 KB
最終ジャッジ日時 2023-10-14 18:14:51
合計ジャッジ時間 11,040 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 123 ms
8,536 KB
testcase_04 AC 134 ms
8,408 KB
testcase_05 AC 124 ms
8,588 KB
testcase_06 AC 124 ms
8,408 KB
testcase_07 AC 139 ms
8,456 KB
testcase_08 AC 125 ms
8,460 KB
testcase_09 AC 135 ms
8,584 KB
testcase_10 AC 123 ms
8,632 KB
testcase_11 AC 19 ms
4,540 KB
testcase_12 AC 9 ms
4,352 KB
testcase_13 AC 34 ms
5,180 KB
testcase_14 AC 34 ms
5,104 KB
testcase_15 AC 104 ms
7,668 KB
testcase_16 AC 93 ms
7,376 KB
testcase_17 AC 48 ms
5,752 KB
testcase_18 AC 33 ms
5,292 KB
testcase_19 AC 69 ms
6,500 KB
testcase_20 AC 89 ms
7,360 KB
testcase_21 AC 69 ms
6,548 KB
testcase_22 AC 73 ms
6,860 KB
testcase_23 AC 37 ms
5,304 KB
testcase_24 AC 16 ms
4,576 KB
testcase_25 AC 30 ms
4,996 KB
testcase_26 AC 57 ms
6,096 KB
testcase_27 AC 83 ms
6,964 KB
testcase_28 AC 27 ms
4,984 KB
testcase_29 AC 110 ms
8,036 KB
testcase_30 AC 129 ms
8,340 KB
testcase_31 AC 24 ms
4,960 KB
testcase_32 AC 20 ms
4,772 KB
testcase_33 AC 44 ms
5,492 KB
testcase_34 AC 121 ms
8,336 KB
testcase_35 AC 59 ms
6,228 KB
testcase_36 AC 131 ms
8,464 KB
testcase_37 AC 115 ms
7,940 KB
testcase_38 AC 17 ms
4,512 KB
testcase_39 AC 92 ms
7,240 KB
testcase_40 AC 96 ms
7,128 KB
testcase_41 AC 3 ms
4,356 KB
testcase_42 AC 11 ms
4,352 KB
testcase_43 WA -
testcase_44 AC 3 ms
4,352 KB
testcase_45 WA -
testcase_46 AC 2 ms
4,348 KB
testcase_47 WA -
testcase_48 AC 2 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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