結果

問題 No.2600 Avator Height
ユーザー 👑 timitimi
提出日時 2024-01-12 21:26:26
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 577 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 207 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 104,424 KB
最終ジャッジ日時 2024-01-12 21:26:52
合計ジャッジ時間 16,522 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 65 ms
90,500 KB
testcase_01 AC 529 ms
104,420 KB
testcase_02 AC 543 ms
104,420 KB
testcase_03 AC 521 ms
104,420 KB
testcase_04 AC 577 ms
104,420 KB
testcase_05 AC 527 ms
104,412 KB
testcase_06 AC 545 ms
104,420 KB
testcase_07 AC 546 ms
104,420 KB
testcase_08 AC 548 ms
104,412 KB
testcase_09 AC 526 ms
104,420 KB
testcase_10 AC 551 ms
104,420 KB
testcase_11 AC 521 ms
104,420 KB
testcase_12 AC 548 ms
104,420 KB
testcase_13 AC 523 ms
104,420 KB
testcase_14 AC 525 ms
104,420 KB
testcase_15 AC 543 ms
104,420 KB
testcase_16 AC 517 ms
104,420 KB
testcase_17 AC 518 ms
104,420 KB
testcase_18 AC 550 ms
104,420 KB
testcase_19 AC 517 ms
104,420 KB
testcase_20 AC 524 ms
104,420 KB
testcase_21 AC 551 ms
104,420 KB
testcase_22 AC 522 ms
104,420 KB
testcase_23 AC 547 ms
104,420 KB
testcase_24 AC 463 ms
104,424 KB
testcase_25 AC 485 ms
104,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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