結果
問題 |
No.44 DPなすごろく
|
ユーザー |
![]() |
提出日時 | 2017-01-09 01:37:26 |
言語 | C90 (gcc 12.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 254 bytes |
コンパイル時間 | 243 ms |
コンパイル使用メモリ | 22,400 KB |
実行使用メモリ | 8,228 KB |
最終ジャッジ日時 | 2024-12-17 23:54:09 |
合計ジャッジ時間 | 24,711 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 OLE * 1 |
other | WA * 15 OLE * 5 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:15:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 15 | scanf("%d",&N); | ^~~~~~~~~~~~~~
ソースコード
#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; }