結果

問題 No.2600 Avator Height
ユーザー ニックネームニックネーム
提出日時 2024-01-12 21:26:35
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 1,365 ms / 2,000 ms
コード長 202 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 11,776 KB
実行使用メモリ 25,660 KB
最終ジャッジ日時 2024-01-12 21:27:31
合計ジャッジ時間 36,260 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 149 ms
25,660 KB
testcase_01 AC 1,342 ms
25,660 KB
testcase_02 AC 1,330 ms
25,660 KB
testcase_03 AC 1,322 ms
25,660 KB
testcase_04 AC 1,314 ms
25,660 KB
testcase_05 AC 1,333 ms
25,660 KB
testcase_06 AC 1,362 ms
25,660 KB
testcase_07 AC 1,359 ms
25,660 KB
testcase_08 AC 1,327 ms
25,660 KB
testcase_09 AC 1,330 ms
25,660 KB
testcase_10 AC 1,333 ms
25,660 KB
testcase_11 AC 1,325 ms
25,660 KB
testcase_12 AC 1,333 ms
25,660 KB
testcase_13 AC 1,299 ms
25,660 KB
testcase_14 AC 1,347 ms
25,660 KB
testcase_15 AC 1,331 ms
25,660 KB
testcase_16 AC 1,329 ms
25,660 KB
testcase_17 AC 1,315 ms
25,660 KB
testcase_18 AC 1,328 ms
25,660 KB
testcase_19 AC 1,331 ms
25,660 KB
testcase_20 AC 1,291 ms
25,660 KB
testcase_21 AC 1,365 ms
25,660 KB
testcase_22 AC 1,334 ms
25,660 KB
testcase_23 AC 1,300 ms
25,660 KB
testcase_24 AC 1,152 ms
25,660 KB
testcase_25 AC 1,250 ms
25,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353; r = [1,1]; e = [1,3]
for i in range(2*10**5-1): r.append((r[-2]+r[-1])%mod); e.append((e[-2]+e[-1])%mod)
for _ in range(int(input())): n = int(input())-1; print((5*r[n]**2-e[n]**2)%mod)
0