2019 Multi-University Training Contest 2
Posted accpted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了2019 Multi-University Training Contest 2相关的知识,希望对你有一定的参考价值。
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 const ll mod=1e6+3; 6 ll ans[mod+1],n; 7 int main() 8 ans[0]=1; 9 for (int i=1;i<=mod;i++) 10 ans[i]=ans[i-1]*i%mod; 11 12 while (~scanf("%lld",&n)) 13 if (n>=mod) 14 printf("0\\n"); 15 else 16 printf("%lld\\n",ans[n]); 17 18 19
以上是关于2019 Multi-University Training Contest 2的主要内容,如果未能解决你的问题,请参考以下文章
2019 Multi-University Training Contest 6
2019 Multi-University Training Contest 6
2019 Multi-University Training Contest 6
2019 Multi-University Training Contest 3