10 2022 档案
Bob's Problem - trees, greedy
摘要:Bob was in trouble.He rubbed the magic ring on his finger, and you came out of the ground. You are given an undirected graph GG which contains nn vert
阅读全文
1738C-Even Number Addicts - dp, games, greedy
摘要:void solve() { int n; cin >> n; int odd = 0, even = 0; for (int i = 0; i < n; i++) { int a; cin >> a; if (a & 1) odd++; else even++; } int t = odd & 3
阅读全文