結果
| 問題 | No.44 DPなすごろく |
| ユーザー |
takatowin
|
| 提出日時 | 2017-01-09 01:37:26 |
| 言語 | C90(gcc15) (gcc 15.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 254 bytes |
| 記録 | |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 38,840 KB |
| 最終ジャッジ日時 | 2026-02-24 00:04:06 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 4 |
| other | WA * 11 OLE * 4 -- * 5 |
ソースコード
#include<stdio.h>
double temp;
void make(int n){
int i,a;
if(n==0 || n==1){
puts("");
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