結果
| 問題 |
No.120 傾向と対策:門松列(その1)
|
| コンテスト | |
| ユーザー |
しらっ亭
|
| 提出日時 | 2015-07-01 02:04:47 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 457 bytes |
| コンパイル時間 | 95 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-07-07 21:35:06 |
| 合計ジャッジ時間 | 821 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 4 |
ソースコード
from collections import Counter
def solve(N, L):
c2 = Counter(Counter(L).values())
ls = [0, 0, 0]
for n in sorted(c2.keys(), reverse=True):
k = c2[n]
for i in range(k):
ls.sort()
ls[0] += n
return min(ls)
def main():
T = int(input())
for t in range(T):
N = int(input())
L = list(map(int, input().split()))
print(solve(N, L))
if __name__ == '__main__':
main()
しらっ亭