数学
未言笑
这个作者很懒,什么都没留下…
展开
-
蓝桥杯生物芯片
#include <iostream>#include <cstdio>#include <cmath>using namespace std;/* run this program using the console pauser or add your own getch, system("pause") or input loop *//*思...原创 2019-05-14 16:48:37 · 245 阅读 · 0 评论 -
蓝桥杯组合数
组合数性质:若表示在 n 个物品中选取 m 个物品,则如存在下述公式:C(n,m)=C(n,n-m)=C(n-1,m-1)+C(n-1,m)。#include <iostream>using namespace std;/* run this program using the console pauser or add your own getch, system("pa...原创 2019-05-19 17:16:56 · 1074 阅读 · 0 评论 -
c/cpp中的对数运算的简单归纳
对数的百科#include<iostream>#include<cstdio>#include<algorithm>#include<cmath>using namespace std;#define log2(n) log(n)/log(2) //可以把以其他数为底的写成宏或函数。int main(){//lo...原创 2019-05-14 17:52:28 · 2420 阅读 · 0 评论 -
负数取模
先来段维基百科的解释(英语好的可以去看),反正我没有看。百度百科的取模对于这种网上有很多解答的问题,我也懒得再写了,找到了几个觉得还不错的博客,可以去看一下。1.看了立马懂2.几道例子。...转载 2019-05-14 20:55:59 · 367 阅读 · 0 评论