結果
問題 |
No.1263 ご注文は数学ですか?
|
ユーザー |
![]() |
提出日時 | 2025-06-12 16:08:00 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 285 bytes |
コンパイル時間 | 197 ms |
コンパイル使用メモリ | 82,744 KB |
実行使用メモリ | 54,100 KB |
最終ジャッジ日時 | 2025-06-12 16:08:09 |
合計ジャッジ時間 | 1,098 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 5 |
ソースコード
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])