結果
問題 | No.44 DPなすごろく |
ユーザー |
![]() |
提出日時 | 2024-02-20 00:51:51 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 214 bytes |
コンパイル時間 | 2,734 ms |
コンパイル使用メモリ | 243,556 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-09-29 03:20:11 |
合計ジャッジ時間 | 3,592 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 |
コンパイルメッセージ
main.cpp:1:25: warning: extra tokens at end of #include directive 1 | #include <bits/stdc++.h>; | ^
ソースコード
#include <bits/stdc++.h>;using namespace std;int main() {long long n,f[100000];cin>>n;f[1]=1;f[2]=2;for (int i=2;i<=n;i++) {f[i+1]=f[i-1]+f[i];}cout<<f[n];return 0;}