結果
| 問題 | No.2299 Antitypoglycemia |
| コンテスト | |
| ユーザー |
とろちゃ
|
| 提出日時 | 2023-05-12 21:38:11 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 713 bytes |
| 記録 | |
| コンパイル時間 | 788 ms |
| コンパイル使用メモリ | 85,588 KB |
| 実行使用メモリ | 115,448 KB |
| 最終ジャッジ日時 | 2026-05-22 17:16:41 |
| 合計ジャッジ時間 | 11,287 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 1 |
| other | AC * 20 WA * 5 |
ソースコード
# import pypyjit;pypyjit.set_param("max_unroll_recursion=-1")
# from bisect import *
# from collections import *
# from heapq import *
# from itertools import *
from math import *
# from datetime import *
# from decimal import*
# from string import ascii_lowercase,ascii_uppercase
# import numpy as np
import sys
import os
# sys.setrecursionlimit(10**6)
INF = 10**18
MOD = 998244353
# MOD = 10**9 + 7
File = open("input.txt", "r") if os.path.exists("input.txt") else sys.stdin
def input():
return File.readline()[:-1]
# ///////////////////////////////////////////////////////////////////////////
N, A, B = map(int, input().split())
p = perm(N)
p2 = perm(N - 1) * 2 - perm(N - 2)
print((p - p2) % MOD)
とろちゃ