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 阅读全文
posted @ 2022-10-09 20:50 OopsOops 阅读(19) 评论(0) 推荐(0) 编辑
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 阅读全文
posted @ 2022-10-06 13:50 OopsOops 阅读(40) 评论(0) 推荐(0) 编辑

 
点击右上角即可分享
微信分享提示