# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
19659 |
2016-02-25T04:16:35 Z |
LK149 |
괄호 (kriii4_R) |
C++ |
|
0 ms |
4988 KB |
#include <stdio.h>
int dp[1000001];
int main ()
{
int n, k;
scanf ("%d %d", &n,&k);
dp[0] = 1;
dp[1] = 1;
for (int i = 2; i <= n; i++)
{
dp[i] = dp[i - 1] + dp[i - 2];
}
printf("%d", dp[n]);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
4988 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |