結果
| 問題 |
No.1035 Color Box
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-05-07 23:33:15 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 152 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 18,204 KB |
| 最終ジャッジ日時 | 2024-07-03 09:40:32 |
| 合計ジャッジ時間 | 4,100 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | AC * 2 WA * 1 RE * 1 TLE * 1 -- * 31 |
ソースコード
B = 10**9 + 7
n,m=map(int,input().split())
blanks = n - m
blank1=1
blank2=1
for i in range(1, blanks+1):
blank1 *= (n+1-i) % B
blank2 *= (i) % B
blank_p = int(blank1 / blank2)
cp = 1
for i in range(1, m+1):
cp *= i
cp %= B
print(cp*blank_p%B)