結果
問題 | No.1754 T-block Tiling |
ユーザー | kotatsugame |
提出日時 | 2021-11-20 13:05:50 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 291 bytes |
コンパイル時間 | 530 ms |
コンパイル使用メモリ | 65,784 KB |
実行使用メモリ | 4,380 KB |
最終ジャッジ日時 | 2023-09-02 00:14:29 |
合計ジャッジ時間 | 912 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 2 ms
4,380 KB |
testcase_01 | AC | 2 ms
4,376 KB |
コンパイルメッセージ
main.cpp:7:1: 警告: ISO C++ では型の無い ‘main’ の宣言を禁止しています [-Wreturn-type] 7 | main() | ^~~~
ソースコード
#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; } }