首页 > TAG信息列表 > League

2017-2018 ACM-ICPC Asia East Continent League Final (ECL-Final 2017)

这场前期不错,后期打爆了 #### A - Chat Group 场1A。 用 $2^n-\sum_{i=0}^{k-1}C_{n}^i$ 即可。 #### B - Scapegoat 场1A。 化式子得到要求的就是 $\sum_{i=1}^n\frac{x_i^2}{k_i}$ 的最小值,其中 $\sum_{i=1}^nk_i=m$ 。 那么维护一个堆,按照 $\frac{x_i^2}{k_i}-\frac{x_i^2}{k_i

LeetCode:Database 20. League Statistics

要求:Write an SQL query to report the statistics of the league. The statistics should be built using the played matches where the winning team gets three points and the losing team gets no points. If a match ends with a draw, both teams get one point. Tea

2017-2018 ACM-ICPC Asia East Continent League Final (ECL-Final 2017)

传送门 A I'am crazy now. I was wa for many times for a little problem ans will be litter than sum sometime and I forget make it a positive integer ans = (ans - sum + mod) % mod; This is a easy problem that we should get the answer \(\sum_{i=k}^{n}C(i,

League of Leesins

C - League of Leesins 首先找到每一串数字的头和尾两个数字,这两个数字有一个特点,就是它们在输入数据的时候都只会出现一次。我们在输出的时候用头和尾做第一数都可以。 然后第二个数只会出现两次,这样就可以找到第2个数,然后依次类推,就可以找完了 代码: // Created by CAD on 2019

训练20191005 2017-2018 ACM-ICPC Asia East Continent League Final

A 签到 M 签到 K 读懂后签到 L 博弈论 【引理】出现SXXS结构时后手必胜。 很容易发现n为奇数时后手不可能胜利,n为偶数时先手不可能胜利。n≤6时一定平局,n≥7时先手有可能胜利,n≥16时后手有可能胜利。 C 既然可以自由调节相位,不妨忽略中间经过的时间。那么显然答案就是最长的红灯时

AtCoder ABC139E League 判dag dag上简单dp

有n(1000)n(1000)n(1000)个人, 每个人都要和其他n−1n-1n−1个人进行比赛, 每个人都规定了他参加的n−1n-1n−1场比赛的顺序, 问是否有一种比赛顺序能满足所有人心意. 此外, 每天可以安排多场比赛,但每天一个人只能参加一场比赛. 如果不能满足所有人的心意输出−1-1−1, 如