結果
| 問題 | No.2600 Avator Height |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2024-01-12 21:26:11 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 906 ms / 2,000 ms |
| + 126µs | |
| コード長 | 219 bytes |
| 記録 | |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 21,468 KB |
| 実行使用メモリ | 30,892 KB |
| 最終ジャッジ日時 | 2026-09-05 08:51:16 |
| 合計ジャッジ時間 | 26,105 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 25 |
ソースコード
mod=998244353
R=[1,1,1]
E=[1,1,3]
for i in range(2*10**5):
R.append((R[-1]+R[-2])%mod)
E.append((E[-1]+E[-2])%mod)
Q=int(input())
for tests in range(Q):
x=int(input())
print((5*R[x]**2 - E[x]**2)%mod)
titia