結果
| 問題 |
No.1754 T-block Tiling
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-11-20 13:55:16 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 224 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-06-11 14:46:21 |
| 合計ジャッジ時間 | 718 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 |
ソースコード
mod = 998244353
dp = [[2,2]]
for i in range(100):
ndp = [0,0]
ndp[0] = (dp[-1][0]*2+dp[-1][1])%mod
ndp[1] = ndp[0]
dp.append(ndp)
t = int(input())
for i in range(t):
n = int(input())-1
print(dp[n][0])