結果
問題 | No.118 門松列(2) |
ユーザー |
![]() |
提出日時 | 2021-04-01 23:28:57 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 341 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 16,848 KB |
最終ジャッジ日時 | 2024-12-21 07:18:59 |
合計ジャッジ時間 | 4,976 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 26 |
ソースコード
from collections import Counter N, *A = map(int, open(0).read().split()) c = Counter(A) ks = list(c) result = 0 for i in range(len(ks) - 2): for j in range(i + 1, len(ks) - 1): for k in range(j + 1, len(ks)): result += c[i] * c[j] * c[k] print(result)