結果
| 問題 | 
                            No.1186 長方形の敷き詰め
                             | 
                    
| コンテスト | |
| ユーザー | 
                             e869120
                         | 
                    
| 提出日時 | 2021-03-05 17:56:06 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 471 bytes | 
| コンパイル時間 | 600 ms | 
| コンパイル使用メモリ | 82,632 KB | 
| 実行使用メモリ | 11,316 KB | 
| 最終ジャッジ日時 | 2024-10-06 18:45:56 | 
| 合計ジャッジ時間 | 1,632 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 21 WA * 3 | 
ソースコード
#include <iostream>
#include <map>
#include <set>
#include <queue>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
using namespace std;
#pragma warning (disable: 4996)
long long mod = 998244353;
long long N, M;
long long dp[1000009];
int main() {
	cin >> N >> M;
	dp[0] = 1;
	for (int i = 1; i <= M; i++) {
		dp[i] = dp[i - 1];
		if (i - N >= 0) dp[i] += dp[i - N];
		dp[i] %= mod;
	}
	cout << dp[M] << endl;
	return 0;
}
            
            
            
        
            
e869120