---
# System prepended metadata

title: '2024-03-13'

---

# 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$
沒錯