結果
問題 |
No.44 DPなすごろく
|
ユーザー |
![]() |
提出日時 | 2017-01-09 01:40:05 |
言語 | C90 (gcc 12.3.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 260 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-12-17 23:54:46 |
合計ジャッジ時間 | 12,407 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 TLE * 1 |
other | AC * 20 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:14:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 14 | scanf("%d",&N); | ^~~~~~~~~~~~~~
ソースコード
#include<stdio.h> double temp; void make(int n){ if(n==0 || n==1){ temp+=1; return; }else{ make(n-1); make(n-2); } } int main(void){ int N; scanf("%d",&N); make(N); printf("%.lf\n",temp); return 0; }