Submission #4314

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
43142013-09-12 10:07:27zorrapowerInherited disease (kriii1_I)C++98
0 / 1
200 ms1088 KiB
#include<stdio.h>
void get_N_generationArea(long long n,long long *start, long long *end);
long long Factorial(long long n);
long long getResult(long long n, long long *start, long long *end);
long long Array[100];
long long n;
int main(void){
long long start,end;
get_N_generationArea(2, &start, &end);
scanf("%d", &n);
for(long long i=0; i<n; i++)
scanf("%d", &Array[i]);
for(long long i=1; i<=n; i++){
printf("%d\n", getResult(i, &start, &end)%1000000007);
}
while(true);
return 0;
}
void get_N_generationArea(long long n,long long *start, long long *end){
*start=0;
*end=0;
for(long long i=1; i<=n; i++){
*end+=Factorial(i)%1000000007;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
#Verdict Execution timeMemoryGrader output
Fetching results...