摘要: ll pow(ll x, ll y, ll mod) { if (y == 0)return 1; return (((y & 1) ? x : 1) * pow(x*x%mod, y >> 1, mod)) % mod; } 阅读全文
posted @ 2022-02-08 22:05 _comet 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 简单 C E F 中等 B 博弈论、栈 E 贪心 困难 A 模拟+优先队列(小根堆) D dfs A Heap Operations CodeForces - 681C 题意 有个堆,有三种操作 insert x — 把x加到堆里。 getMin x — 得到堆里的最小值,且最小值等于x,当堆为空或 阅读全文
posted @ 2022-02-08 17:10 _comet 阅读(162) 评论(0) 推荐(0) 编辑