![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
NOI
QQN1996
这个作者很懒,什么都没留下…
展开
-
多项式系数
用杨辉三角算系数C(k,n),因为数字很大,即使是long long也会超,所以边乘边求余 #include #include using namespace std; #define N 10007 int s[1005][1005]; int fun(int a,int n) { int i,t; a=a%N; t=a; for(i=0;i<n-1;i++)原创 2016-07-25 11:35:26 · 547 阅读 · 0 评论 -
统计单词数
#include #include #include using namespace std; char s1[15],s2[10000001],c[15]; int fun(char *s1,char *s2) //比较两个字符串是否相等 { int i,l1,l2; l1=strlen(s1); l2=strlen(s2); if(l1!=l2)原创 2016-07-25 11:47:09 · 202 阅读 · 0 评论