Submission #743020

#TimeUsernameProblemLanguageResultExecution timeMemory
743020vjudge1Lightning Rod (NOI18_lightningrod)C++17
0 / 100
2080 ms182924 KiB
#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 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...