摘要:题意:给定两个区间 [a, b], [c, d],问有多少个有序对 (x, y)(x >= a && x <= b && y >= c && y <= d)使得,(x*y)= 0(mod 2018)。 输入:a, b, c, d。 数据范围:多组输入,所有输入均为[1, 1e9]。 The numb
阅读全文
摘要:在一篇论文上多花时间和开新的论文, a * x求和完全等效,因为 x*i=n,只是拆分方法不同,总合都是a * n。eg: n = 3, a = 2, 拆分为1 1 1, 则基础引用量为2 2 2, trick引用量2 1 0,总效果2+2 2+1 2;拆分为2 1,则基础引用量为4 2(基础部分综合相同),trick引用量1 0(比论文篇数多的情况少),总效果为4+1 2+0,减少。 所以尽可能
阅读全文
摘要:C - How Many Maos Does the Guanxi Worth HDU - 5137 C - How Many Maos Does the Guanxi Worth HDU - 5137 C - How Many Maos Does the Guanxi Worth "Guanxi"
阅读全文
摘要:Far far away, there live a lot of dogs in the forest. Unlike other dogs, those dogs love candies much more than bones. Every candy has two attributes:
阅读全文