LB的阶乘
Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 1190 Accepted Submission(s) : 267
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
Problem Description
Input
对于每个测试用例,第一行只包含一个整数N(0≤N≤10000),N如描述所示。
Output
Sample Input
1 2016
Sample Output
YES#include using namespace std; int dp(int x){ if(x==0||x==1){ return 1; } else{ return ((x%2016)*dp(x-1))%2016; } } int main() { int x,i,t; while (scanf("%d", &t)!=EOF) { for(i=0;i
9760



被折叠的 条评论
为什么被折叠?



