結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 136 ms
8,660 KB
testcase_04 AC 130 ms
8,444 KB
testcase_05 AC 134 ms
8,388 KB
testcase_06 AC 134 ms
8,596 KB
testcase_07 AC 133 ms
8,500 KB
testcase_08 AC 137 ms
8,544 KB
testcase_09 AC 136 ms
8,444 KB
testcase_10 AC 135 ms
8,500 KB
testcase_11 AC 19 ms
4,728 KB
testcase_12 AC 9 ms
4,348 KB
testcase_13 AC 35 ms
5,224 KB
testcase_14 AC 34 ms
5,404 KB
testcase_15 AC 107 ms
7,640 KB
testcase_16 AC 96 ms
7,456 KB
testcase_17 AC 49 ms
5,964 KB
testcase_18 AC 33 ms
5,328 KB
testcase_19 AC 74 ms
6,784 KB
testcase_20 AC 97 ms
7,268 KB
testcase_21 AC 72 ms
6,516 KB
testcase_22 AC 75 ms
6,828 KB
testcase_23 AC 37 ms
5,524 KB
testcase_24 AC 15 ms
4,444 KB
testcase_25 AC 29 ms
4,968 KB
testcase_26 AC 55 ms
6,148 KB
testcase_27 AC 84 ms
7,140 KB
testcase_28 AC 26 ms
4,900 KB
testcase_29 AC 113 ms
7,860 KB
testcase_30 AC 122 ms
8,200 KB
testcase_31 AC 24 ms
4,776 KB
testcase_32 AC 21 ms
4,792 KB
testcase_33 AC 43 ms
5,468 KB
testcase_34 AC 126 ms
8,348 KB
testcase_35 AC 56 ms
6,280 KB
testcase_36 AC 132 ms
8,268 KB
testcase_37 AC 112 ms
7,664 KB
testcase_38 AC 16 ms
4,516 KB
testcase_39 AC 91 ms
7,100 KB
testcase_40 AC 89 ms
7,284 KB
testcase_41 AC 3 ms
4,348 KB
testcase_42 AC 11 ms
4,352 KB
testcase_43 WA -
testcase_44 AC 2 ms
4,348 KB
testcase_45 AC 2 ms
4,348 KB
testcase_46 AC 2 ms
4,352 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(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