結果
| 問題 |
No.2600 Avator Height
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-01-12 21:50:57 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 314 bytes |
| コンパイル時間 | 296 ms |
| コンパイル使用メモリ | 82,440 KB |
| 実行使用メモリ | 117,560 KB |
| 最終ジャッジ日時 | 2024-09-27 21:57:46 |
| 合計ジャッジ時間 | 5,590 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | TLE * 1 -- * 24 |
ソースコード
for q in range(int(input())):
x=int(input())
if(x==1):
print(4)
continue
r=[0,1,1]
e=[0,1,3]
for i in range(x-2):
r[0]=r[1]
r[1]=r[2]
r[2]=r[0]+r[1]
e[0]=e[1]
e[1]=e[2]
e[2]=e[0]+e[1]
print((5*(r[-1]**2)-(e[-1]**2))%998244353)