結果
| 問題 |
No.3043 括弧列の数え上げ
|
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-03-03 02:51:08 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 154 bytes |
| コンパイル時間 | 571 ms |
| コンパイル使用メモリ | 12,288 KB |
| 実行使用メモリ | 10,368 KB |
| 最終ジャッジ日時 | 2025-03-03 02:51:12 |
| 合計ジャッジ時間 | 3,739 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 8 WA * 37 |
ソースコード
import sys
input = sys.stdin.readline
N=int(input())
mod=998244353
if N%2==1:
print(0)
exit()
x=N//2-1
print((pow(4,x,mod)-pow(3,x,mod))%mod)
titia