結果
問題 | No.1390 Get together |
ユーザー |
|
提出日時 | 2021-08-29 10:17:11 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 216 bytes |
コンパイル時間 | 148 ms |
コンパイル使用メモリ | 82,468 KB |
実行使用メモリ | 115,196 KB |
最終ジャッジ日時 | 2024-11-22 03:52:02 |
合計ジャッジ時間 | 7,066 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 14 |
ソースコード
N,M=map(int,input().split())box=[set() for _ in range(N)] #色ごとに箱を格納for _ in range(N):b,c=map(int,input().split())box[c-1].add(b)ans=0for i in range(N):ans+=max(0,len(box[i])-1)print(ans)