Submission #572829

#TimeUsernameProblemLanguageResultExecution timeMemory
572829DevigoLightning Rod (NOI18_lightningrod)C++14
0 / 100
2100 ms262144 KiB
#include <bits/stdc++.h> using namespace std; #define pb push_back #define mp make_pair const int siz = 0; const int mod = 0; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; vector<pair<int,int>> v(n); for(int i=0; i<n; i++) { cin >> v[i].first >> v[i].second; } set<int> s; for(int i=0; i<n; i++) { s.insert(v[i].first); } cout << s.size() << "\n"; 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...