結果
| 問題 |
No.1390 Get together
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-02-12 21:45:41 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 424 bytes |
| コンパイル時間 | 1,585 ms |
| コンパイル使用メモリ | 178,432 KB |
| 実行使用メモリ | 24,960 KB |
| 最終ジャッジ日時 | 2024-07-19 20:54:14 |
| 合計ジャッジ時間 | 5,820 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 15 WA * 14 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int n,mm;
pair<int,int> tmp;
map< int, set<int> > m;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
cin>>n>>mm;
for(int i=0; i<n; i++)
{
cin>>tmp.first>>tmp.second;
m[tmp.second].insert(tmp.first);
}
int ans = 0;
for(auto x : m)
{
ans+=x.second.size()-1;
}
cout<<ans<<endl;
}