数学
bootdubbo
这个作者很懒,什么都没留下…
展开
-
HDU-1019 Least Common Multiple
The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 15 is 105. Input Input...原创 2019-07-14 18:56:25 · 125 阅读 · 0 评论 -
组合数
题意:给出n,kn,kn,k,求min(1e18,C(n,k))min(1e18,C(n,k))min(1e18,C(n,k)) #include<bits/stdc++.h> using namespace std; #define maxn 1010 typedef long long ll; ll n,k; ll cal(ll n,ll k){ k=min(k,n-k); ...原创 2019-10-04 15:01:44 · 91 阅读 · 0 评论 -
牛客 4 Buttons
#include <bits/stdc++.h> using namespace std; const int mod = 1e9+7; typedef long long ll; int main(){ ll n,a,b,c,d; while(~scanf("%lld%lld%lld%lld%lld",&n,&a,&b,&c,&...原创 2019-10-04 17:19:06 · 278 阅读 · 0 评论 -
HDU - 6330 Problem L. Visual Cube
Little Q likes solving math problems very much. Unluckily, however, he does not have good spatial ability. Everytime he meets a 3D geometry problem, he will struggle to draw a picture. Now he meets a ...原创 2019-10-08 21:15:49 · 131 阅读 · 0 评论