07 2018 档案
摘要:For non negative integers and and a prime , the following congruence relation holds: $$\binom{m}{n} \equiv \prod_{i=0}^{k} \binom {m_i}{n_i
阅读全文
摘要:"题目" Analysis 曼哈顿距离( metric)最小生成树。 Implementation 下面的代码参考了 "gispzjz" 在比赛中的 "提交" 。 c++ include using namespace std; define pb push_back define eb e
阅读全文
摘要:"题目" 题目大意 给定一棵有 个节点的树,边的权值每天变化。对于第 条边,在第 天,其权值为 ,每天权值变化 (即,在第 天,其权值为 )。求在第 天到第 天之间,树的直径的最小值,并且求出最早在哪一天达
阅读全文
摘要:这篇博客的源起是下面的一段代码 其中 相当于 (`std::priority_queue clear()` 方法)。以前我清空 priority_queue 用的是 然而 "编译器" 对这个语句给出了一个警告: (g++ 6.3.0: ) 概念 implicit class type convers
阅读全文
摘要:AtCoder hihoCoder (Not active since 2020/9.) Codeforces DMOJ CodeChef CS Academy HackerRank HackerEarth PEG Judge 洛谷 牛客网 计蒜客 Szkopuł Comet OJ CSES 上面有
阅读全文
摘要:"题目" 题目大意 给定平面上的 个点和常数 ,求 轴上的点 到 个点中距其最近的 个点的距离之和的最小值。两点之间的距离定义为曼哈顿距离。 数据范围 。 点的坐标是 到 之间的整数。
阅读全文