結果
| 問題 |
No.1011 Infinite Stairs
|
| コンテスト | |
| ユーザー |
zumin
|
| 提出日時 | 2021-03-28 18:37:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 328 bytes |
| コンパイル時間 | 2,975 ms |
| コンパイル使用メモリ | 147,812 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-29 09:18:52 |
| 合計ジャッジ時間 | 6,940 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | AC * 1 RE * 23 |
ソースコード
#include <iostream>
#include <vector>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
using mint=modint1000000007;
int main(){
int n,d,k;
cin>>n>>d>>k;
vector<mint> cur(k,0),a(d,1);
cur[0]=1;
for(int i=0;i<n;i++) cur=convolution(cur,a);
cout<<cur[k-n].val()<<endl;
return 0;
}
zumin