結果

問題 No.2600 Avator Height
ユーザー Akijin_007Akijin_007
提出日時 2024-01-12 21:33:37
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 210 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 200 ms
コンパイル使用メモリ 81,700 KB
実行使用メモリ 105,212 KB
最終ジャッジ日時 2024-01-12 21:34:06
合計ジャッジ時間 7,947 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
89,220 KB
testcase_01 AC 201 ms
104,956 KB
testcase_02 AC 196 ms
104,956 KB
testcase_03 AC 202 ms
104,956 KB
testcase_04 AC 201 ms
104,956 KB
testcase_05 AC 200 ms
104,956 KB
testcase_06 AC 210 ms
104,956 KB
testcase_07 AC 201 ms
104,956 KB
testcase_08 AC 199 ms
104,956 KB
testcase_09 AC 198 ms
104,956 KB
testcase_10 AC 198 ms
104,956 KB
testcase_11 AC 208 ms
104,956 KB
testcase_12 AC 201 ms
104,956 KB
testcase_13 AC 202 ms
104,956 KB
testcase_14 AC 199 ms
104,956 KB
testcase_15 AC 199 ms
104,956 KB
testcase_16 AC 207 ms
104,956 KB
testcase_17 AC 196 ms
104,956 KB
testcase_18 AC 201 ms
104,956 KB
testcase_19 AC 205 ms
104,956 KB
testcase_20 AC 198 ms
104,956 KB
testcase_21 AC 210 ms
104,956 KB
testcase_22 AC 202 ms
104,956 KB
testcase_23 AC 202 ms
104,956 KB
testcase_24 AC 176 ms
105,212 KB
testcase_25 AC 184 ms
104,956 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

Q = int(input())
n = [0] * Q
for i in range(Q):
    n[i] = int(input())
mod = 998244353

r = [1, 1]
e = [1, 3]

for i in range(2 * 10 ** 5 + 10):
    r.append((r[-1] + r[-2]) % mod)
    e.append((e[-1] + e[-2]) % mod)

for i in range(Q):
    t = n[i] - 1
    print((5 * r[t] ** 2 - e[t] ** 2) % mod)
0