Submission #91191

#TimeUsernameProblemLanguageResultExecution timeMemory
91191tmwilliamlin168Price List (POI13_cen)C++14
0 / 100
77 ms11188 KiB
#include <bits/stdc++.h> using namespace std; const int mxN=1e5; int n, m, k, a, b, ui, vi; set<pair<int, int>> s; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cin >> n >> m >> k >> a >> b, --k; while(m--) { cin >> ui >> vi, --ui, --vi; while(!s.insert({ui, vi}).second); } }
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...