# 2024-03-13 https://vjudge.net/contest/615175 [TOC] ## A. Dreamoon and NightMarket ([2016 NTU WF Selection G](https://codeforces.com/gym/101234/problem/G)) ## B. ## F. 反正你會發現賽局是獨立的,對吧 ## G. Freshman's Dream ([Osijek Camp F23 D6 E](https://codeforces.com/gym/104925/problem/E)) $(a+b) \oplus n = a \oplus (n+b) \oplus n$ $(a+b) = a \oplus (n+b)$ 據說$x\oplus y=x+y-2(x\& y)$ $(a+b) = a + (n+b) - 2(a\&b)$ $0 = n - 2(a\&b)$ $a\&b = n/2$ 讓$a$的每個bit都是1就會變成 $b=n/2$ 沒錯
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up