Submission #743002

#TimeUsernameProblemLanguageResultExecution timeMemory
743002vjudge1Lightning Rod (NOI18_lightningrod)C++17
0 / 100
2072 ms246976 KiB
#include<bits/stdc++.h> using namespace std; int n,mx = -1,mn = 1e9+7,cnt; vector<pair<int, int>> vc; map<int, int> mpx,mpy; int main() { ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0); cin>>n; for(int i = 0; i<n; ++i){ int x,y;cin>>x>>y; mpx[x]++; mpy[y]++; mx = max(mx,x); mn = min(mn,x); } if(mpy.size()==1){ cout<<mpx.size(); return 0; } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...