結果
| 問題 |
No.118 門松列(2)
|
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2017-01-21 22:20:48 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 150 ms / 5,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 90 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 16,308 KB |
| 最終ジャッジ日時 | 2024-12-23 04:30:43 |
| 合計ジャッジ時間 | 4,129 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 26 |
ソースコード
N = int(input())
a = [0 for i in range(100)]
for i in input().strip().split(" "):
a[int(i)-1] += 1
mod = 10**9 + 7
total = 0
for i in range(100):
for j in range(i+1, 100):
for k in range(j+1, 100):
total += a[i] * a[j] * a[k]
total %= mod
print(total)
nbisco