結果

問題 No.2600 Avator Height
ユーザー hiro1729hiro1729
提出日時 2024-01-12 21:22:16
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 547 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 147 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 104,420 KB
最終ジャッジ日時 2024-01-12 21:22:34
合計ジャッジ時間 16,267 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
90,256 KB
testcase_01 AC 523 ms
104,420 KB
testcase_02 AC 519 ms
104,420 KB
testcase_03 AC 529 ms
104,420 KB
testcase_04 AC 520 ms
104,420 KB
testcase_05 AC 547 ms
104,420 KB
testcase_06 AC 525 ms
104,420 KB
testcase_07 AC 521 ms
104,420 KB
testcase_08 AC 518 ms
104,420 KB
testcase_09 AC 525 ms
104,420 KB
testcase_10 AC 525 ms
104,420 KB
testcase_11 AC 524 ms
104,420 KB
testcase_12 AC 517 ms
104,420 KB
testcase_13 AC 544 ms
104,420 KB
testcase_14 AC 522 ms
104,420 KB
testcase_15 AC 522 ms
104,420 KB
testcase_16 AC 521 ms
104,420 KB
testcase_17 AC 526 ms
104,416 KB
testcase_18 AC 546 ms
104,420 KB
testcase_19 AC 516 ms
104,420 KB
testcase_20 AC 526 ms
104,420 KB
testcase_21 AC 519 ms
104,420 KB
testcase_22 AC 519 ms
104,420 KB
testcase_23 AC 524 ms
104,420 KB
testcase_24 AC 464 ms
104,420 KB
testcase_25 AC 497 ms
104,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

mod = 998244353
R = [0, 1, 1]
for i in range(200020):
	R.append((R[-1] + R[-2]) % mod)
E = [0, 1, 3]
for i in range(200020):
	E.append((E[-1] + E[-2]) % mod)
for _ in range(int(input())):
	N = int(input())
	print((5 * R[N] * R[N] - E[N] * E[N]) % mod)
0