結果

問題 No.1348 Split Tile
ユーザー titiatitia
提出日時 2022-03-31 00:29:25
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 644 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 89,344 KB
最終ジャッジ日時 2024-04-27 14:22:29
合計ジャッジ時間 19,011 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 611 ms
89,216 KB
testcase_01 AC 616 ms
89,216 KB
testcase_02 AC 628 ms
89,216 KB
testcase_03 AC 606 ms
89,216 KB
testcase_04 AC 625 ms
89,216 KB
testcase_05 AC 633 ms
89,216 KB
testcase_06 AC 631 ms
89,216 KB
testcase_07 AC 613 ms
89,216 KB
testcase_08 AC 620 ms
89,216 KB
testcase_09 AC 605 ms
89,216 KB
testcase_10 AC 622 ms
89,216 KB
testcase_11 AC 614 ms
89,216 KB
testcase_12 AC 632 ms
89,216 KB
testcase_13 AC 624 ms
89,216 KB
testcase_14 AC 618 ms
89,216 KB
testcase_15 AC 600 ms
89,344 KB
testcase_16 AC 631 ms
89,216 KB
testcase_17 AC 627 ms
89,216 KB
testcase_18 AC 613 ms
89,216 KB
testcase_19 AC 610 ms
89,216 KB
testcase_20 AC 600 ms
89,216 KB
testcase_21 AC 606 ms
89,344 KB
testcase_22 AC 621 ms
89,216 KB
testcase_23 AC 616 ms
89,216 KB
testcase_24 AC 644 ms
89,216 KB
testcase_25 AC 620 ms
89,216 KB
testcase_26 AC 597 ms
89,216 KB
testcase_27 AC 634 ms
89,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# 実験エスパー

N=int(input())
mod=998244353

FACT=[1]
for i in range(1,2*10**6+1):
    FACT.append(FACT[-1]*i%mod)

X=(3+(3+N-2))*(N-1)*pow(2,mod-2,mod)

print(X*pow(3,mod-2,mod)*FACT[N]%mod)
0