# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
20024 |
2016-02-25T08:41:19 Z |
ilbbke |
괄호 (kriii4_R) |
C++ |
|
0 ms |
8896 KB |
#include<stdio.h>
#define M 1000000007
long long dy[1000005];
int main()
{
int i,n,k;
scanf("%d %d",&n,&k);
dy[1]=1; dy[2]=2;
for(i=3;i<=n;i++)
{
dy[i]=(dy[i-1]+dy[i-2])%M;
}
printf("%lld",dy[n]);
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
8896 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |