結果
| 問題 | No.1186 長方形の敷き詰め |
| コンテスト | |
| ユーザー |
shiomusubi496
|
| 提出日時 | 2020-08-22 17:17:27 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 231 bytes |
| 記録 | |
| コンパイル時間 | 1,080 ms |
| コンパイル使用メモリ | 180,924 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2026-05-04 05:27:55 |
| 合計ジャッジ時間 | 2,247 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 WA * 5 |
ソースコード
#include<bits/stdc++.h>
#define int long long
using namespace std;
signed main(){
int N,M;
cin>>N>>M;
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;
}
shiomusubi496