結果
| 問題 |
No.1035 Color Box
|
| コンテスト | |
| ユーザー |
maru65536
|
| 提出日時 | 2020-04-26 00:22:44 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 728 ms / 2,000 ms |
| コード長 | 168 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 14,720 KB |
| 最終ジャッジ日時 | 2024-11-08 04:04:42 |
| 合計ジャッジ時間 | 7,442 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 36 |
ソースコード
N,M=map(int,input().split()) z,g=10**9+7,[1,1] d=range for i in d(2,N+1):g.append(g[-1]*i%z) print(sum((-1)**i*pow(M-i,N,z)*g[M]*pow(g[i]*g[M-i],z-2,z)for i in d(M))%z)
maru65536