摘要: 降幂公式 A ^ x = A ^ (x % Phi(C) + Phi(C) ) (mod C) (x>=Phi(C)) typedef unsigned long long ull; const double eps = 1e-6; ull get_eular(ull m) { ull ret = 阅读全文
posted @ 2020-10-07 20:02 wansheking 阅读(128) 评论(0) 推荐(0)
摘要: //关系式分两个 //令x = l(H->h), 即灯泡到人的水平距离 //当x 在 [0, d - d * h / H]范围内,ans 递增有最大值为 ans = d * h / H; //当x 在 [d - d * h / H, d]范围内,有关系式ans = H + d - (x + d * 阅读全文
posted @ 2020-10-07 15:25 wansheking 阅读(91) 评论(0) 推荐(0)