結果
| 問題 |
No.1390 Get together
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-24 14:34:57 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 238 bytes |
| コンパイル時間 | 400 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 821,120 KB |
| 最終ジャッジ日時 | 2024-10-12 22:52:31 |
| 合計ジャッジ時間 | 9,411 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 WA * 4 MLE * 1 -- * 14 |
ソースコード
N, M = map(int, input().split())
D = dict()
for _ in range(N):
b, c = map(int, input().split())
if c not in D:
D[c] = [0] * M
D[c][b-1] += 1
cnt = 0
for v in D.values():
cnt += sum(v) - max(v)
print(cnt)