結果

問題 No.1754 T-block Tiling
ユーザー kotatsugame
提出日時 2021-11-20 13:05:50
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 291 bytes
コンパイル時間 699 ms
コンパイル使用メモリ 62,120 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2025-01-03 14:09:59
合計ジャッジ時間 1,192 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:7:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    7 | main()
      | ^~~~

ソースコード

diff #

#include<iostream>
#include<atcoder/modint>
using namespace std;
using mint=atcoder::modint998244353;
int T,N;
mint dp[101];
main()
{
	dp[0]=1;
	for(int i=1;i<=100;i++)
	{
		for(int j=0;j<i;j++)
		{
			dp[i]+=dp[j]*2;
		}
	}
	cin>>T;
	for(;T--;)
	{
		cin>>N;
		cout<<dp[N].val()<<endl;
	}
}
0