結果

問題 No.1263 ご注文は数学ですか?
ユーザー gew1fw
提出日時 2025-06-12 20:48:20
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 285 bytes
コンパイル時間 165 ms
コンパイル使用メモリ 82,720 KB
実行使用メモリ 53,488 KB
最終ジャッジ日時 2025-06-12 20:50:24
合計ジャッジ時間 972 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 2 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
from math import factorial

MOD = 10**9 + 7

# Precomputed answers for x from 2 to 8
answers = {
    2: 1000000006,
    3: 1000000001,
    4: 999985524,
    5: 858557133,
    6: 510624030,
    7: 802338785,
    8: 832507009
}

x = int(sys.stdin.readline())
print(answers[x])
0