結果
問題 |
No.1390 Get together
|
ユーザー |
|
提出日時 | 2021-02-12 22:04:17 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 229 bytes |
コンパイル時間 | 262 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 58,540 KB |
最終ジャッジ日時 | 2024-07-19 21:42:16 |
合計ジャッジ時間 | 23,708 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 14 WA * 15 |
ソースコード
from collections import Counter n,m=map(int,input().split()) a=0 L=[[] for i in range(n+1)] for i in range(n): b,c=map(int,input().split()) L[c].append(b) for l in L: x=Counter(l).most_common() if x:a+=len(l)-x[0][1] print(a)