結果
| 問題 | No.44 DPなすごろく |
| ユーザー |
takatowin
|
| 提出日時 | 2017-01-09 01:38:17 |
| 言語 | C90 (gcc 15.2.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 240 bytes |
| 記録 | |
| コンパイル時間 | 403 ms |
| コンパイル使用メモリ | 38,840 KB |
| 最終ジャッジ日時 | 2026-02-24 00:04:14 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | AC * 14 TLE * 1 -- * 5 |
ソースコード
#include<stdio.h>
double temp;
void make(int n){
int i,a;
if(n==0 || n==1){
temp+=1;
return;
}else
for(i=1;i<=2;i++)
make(n-i);
}
int main(void){
int N;
scanf("%d",&N);
make(N);
printf("%.lf\n",temp);
return 0;
}
takatowin