結果
問題 | No.1348 Split Tile |
ユーザー |
![]() |
提出日時 | 2021-01-16 14:34:30 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 47 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 302 ms |
コンパイル使用メモリ | 82,224 KB |
実行使用メモリ | 59,668 KB |
最終ジャッジ日時 | 2024-11-27 16:23:25 |
合計ジャッジ時間 | 2,422 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 26 |
ソースコード
MOD = 998244353n = int(input())if n == 1:print(0)elif n == 2:print(2)else:t = 1for i in range(1, n + 1):t *= it %= MODprint((t * n + t * (n + 1) * (n - 4) * pow(6, MOD - 2, MOD)) % MOD)