This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include<iostream>
#include<set>
#include<map>
int n,cnt;
std::map<int, bool> mp;
std::set<int> sx,sy;
int main()
{
std::ios_base::sync_with_stdio(0),std::cin.tie(0),std::cout.tie(0);
std::cin>>n;
for(int i = 0; i<n; ++i){
int x,y; std::cin>>x>>y;
if(mp[x]) continue;
mp[x] = 1;
++cnt;
}
std::cout<<cnt;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |