結果
| 問題 | No.44 DPなすごろく |
| ユーザー |
vjudge1
|
| 提出日時 | 2024-02-19 22:49:17 |
| 言語 | C++23 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 365 bytes |
| 記録 | |
| コンパイル時間 | 2,512 ms |
| コンパイル使用メモリ | 327,980 KB |
| 実行使用メモリ | 9,728 KB |
| 最終ジャッジ日時 | 2026-04-15 13:53:31 |
| 合計ジャッジ時間 | 10,249 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 19 TLE * 1 |
ソースコード
#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;
}
vjudge1