Submission #743062

#TimeUsernameProblemLanguageResultExecution timeMemory
743062vjudge1Lightning Rod (NOI18_lightningrod)C++17
0 / 100
2058 ms150428 KiB
#include <bits/stdc++.h> using namespace std; int main () { map<pair<int,int>,int> ma; long long n, a, b, sum = 0; cin >> n; for(long long i = 0;i < n;++i) { cin >> a >> b; if(ma[{a,b}] == 0) { ma[{a,b}] = 1; sum++; } } cout << sum; }
#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...