牛客IOI周赛16-普及组 A

求导

http://www.nowcoder.com/questionTerminal/7adb246544fb44f09e8758fc0566d54a

Question

导后前的系数。

Solution

根据题意,我们在草稿纸上将照着题目给出的方法进行求导,可以得到:

Code:

#include<bits/stdc++.h>
using namespace std;
const int mod=1e9 + 7;
int n;
long long ans=1;
int main(){
    cin>>n;
    for(int i=2;i<=n;++i) ans=ans*i%mod;
    cout<<ans;
    return 0;
}
全部评论

相关推荐

面试拷打成m:我感觉他说的挺对的,感觉我找不到工作也要去送外卖了,至少饿不死
点赞 评论 收藏
分享
迷茫的大四🐶:干脆大厂搞个收费培训得了,这样就人均大厂了
点赞 评论 收藏
分享
评论
2
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务