Submission #577964

#TimeUsernameProblemLanguageResultExecution timeMemory
577964VanillaCarnival Tickets (IOI20_tickets)C++17
0 / 100
1 ms300 KiB
#include <bits/stdc++.h> #include "tickets.h" using namespace std; long long find_maximum(int k, vector<vector<int>> x) { long long n = x.size(); long long m = x[0].size(); vector<vector<int>> answer (n, vector <int> (m)); long long rs = 0; for (int i = 0; i < n; i++){ rs+=abs(x[i][0] - x[n / 2][0]); } allocate_tickets(answer); return rs; // return min({rs1, rs2, rs3}); }
#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...