結果
| 問題 | No.118 門松列(2) |
| コンテスト | |
| ユーザー |
matsu7874
|
| 提出日時 | 2015-03-20 07:16:05 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 320 bytes |
| 記録 | |
| コンパイル時間 | 410 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 20,004 KB |
| 最終ジャッジ日時 | 2026-03-18 07:00:03 |
| 合計ジャッジ時間 | 4,374 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 4 WA * 22 |
ソースコード
N = int(input())
A = [int(x) for x in input().split()]
B = [0 for _ in range(100)]
for a in A:
B[a-1] += 1
def combination(n,r):
if r==0:
return 1
else:
return (n-r+1)*combination(n,r-1)//r
ans = combination(100-B.count(0), 3)
for b in B:
if b >1:
ans *= b
print(ans % (10**9+7))
matsu7874