結果
問題 |
No.1390 Get together
|
ユーザー |
![]() |
提出日時 | 2021-02-12 21:55:02 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 322 bytes |
コンパイル時間 | 2,251 ms |
コンパイル使用メモリ | 206,688 KB |
最終ジャッジ日時 | 2025-01-18 18:25:21 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 WA * 14 |
ソースコード
#include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i,n) for(int i=0;i<n;i++) int main(){ int n,m; cin>>n>>m; map<pair<int,int>,int>mp; map<int,int>mpc; rep(i,n){ int b,c; cin>>b>>c; mp[{b,c}]++; mpc[c]++; } cout<<mp.size()-mpc.size()<<endl; return 0; }