제출 #955028

#제출 시각아이디문제언어결과실행 시간메모리
955028Trisanu_Das카니발 티켓 (IOI20_tickets)C++17
11 / 100
1 ms604 KiB
#include "tickets.h" #include <bits/stdc++.h> using namespace std; long long find_maximum(int k, vector<vector<int> > x) { sort(x.begin(), x.end()); int n = x.size(); vector<vector<int> > ans(n, vector<int>(1)); allocate_tickets(ans); long long res = 0; for(auto u : x) res += abs(u.back() - x[n / 2].back()); return res; }
#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...