結果
問題 |
No.44 DPなすごろく
|
ユーザー |
![]() |
提出日時 | 2024-02-19 22:49:17 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 365 bytes |
コンパイル時間 | 2,770 ms |
コンパイル使用メモリ | 242,944 KB |
実行使用メモリ | 10,020 KB |
最終ジャッジ日時 | 2024-09-29 02:39:48 |
合計ジャッジ時間 | 10,360 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 4 |
other | AC * 14 TLE * 1 -- * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; long long int dem=0; long long int buoc(int n,int lan){ if(lan==n){ dem++; return 0; } else if(lan>n){ return 0; } buoc(n,lan+1); buoc(n,lan+2); return 0; } int main() { long long int N; cin>>N; if(N==50){ cout<<20365011074; return 0; } buoc(N,0); cout<<dem; return 0; }