結果
| 問題 |
No.1186 長方形の敷き詰め
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-08-22 17:20:35 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 276 bytes |
| コンパイル時間 | 1,564 ms |
| コンパイル使用メモリ | 169,076 KB |
| 実行使用メモリ | 11,128 KB |
| 最終ジャッジ日時 | 2024-10-15 11:14:14 |
| 合計ジャッジ時間 | 2,506 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 WA * 2 |
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
int N,M;
cin>>N>>M;
if(N==1){
puts("1");
return 0;
}
vector<int> A(M+1);
A[0]=1;
for(int i=1;i<=M;i++){
A[i]=A[i-1];
if(i>=N)A[i]+=A[i-N];
}
cout<<A[M]<<endl;
}