結果
| 問題 | No.1186 長方形の敷き詰め |
| コンテスト | |
| ユーザー |
shiomusubi496
|
| 提出日時 | 2020-08-22 17:20:35 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 908 ms |
| コンパイル使用メモリ | 181,388 KB |
| 実行使用メモリ | 11,264 KB |
| 最終ジャッジ日時 | 2026-09-18 05:40:21 |
| 合計ジャッジ時間 | 3,016 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}
shiomusubi496