提出 #70655685
ソースコード 拡げる
mod = 998244353
n = int(input())
ans = pow(3, n, mod) - (-1)**n
ans *= pow(4, -1, mod)
ans %= mod
print(ans)
提出情報
| 提出日時 |
|
| 問題 |
F - 色紙 |
| ユーザ |
wasd314 |
| 言語 |
Python (CPython 3.11.4) |
| 得点 |
3 |
| コード長 |
121 Byte |
| 結果 |
AC |
| 実行時間 |
10 ms |
| メモリ |
8536 KiB |
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
3 / 3 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
00_sample_00.txt, 00_sample_01.txt |
| All |
00_sample_00.txt, 00_sample_01.txt, 01_random_00.txt, 01_random_01.txt, 02_min_00.txt |
| ケース名 |
結果 |
実行時間 |
メモリ |
| 00_sample_00.txt |
AC |
10 ms |
8524 KiB |
| 00_sample_01.txt |
AC |
10 ms |
8508 KiB |
| 01_random_00.txt |
AC |
10 ms |
8524 KiB |
| 01_random_01.txt |
AC |
10 ms |
8456 KiB |
| 02_min_00.txt |
AC |
10 ms |
8536 KiB |