結果
問題 | No.1390 Get together |
ユーザー |
|
提出日時 | 2021-02-12 22:09:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 58,540 KB |
最終ジャッジ日時 | 2024-07-19 22:02:13 |
合計ジャッジ時間 | 24,677 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 14 |
ソースコード
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(x)-1 print(a)