結果

問題 No.1390 Get together
ユーザー matrie
提出日時 2021-02-12 22:10:38
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 168 bytes
コンパイル時間 657 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 44,964 KB
最終ジャッジ日時 2024-07-19 22:07:24
合計ジャッジ時間 16,463 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

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:
	if l:a+=len(set(l))-1
print(a)
0