# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
431133 | 2021-06-17T09:56:11 Z | A_D | Carnival Tickets (IOI20_tickets) | C++14 | 1 ms | 204 KB |
#include "tickets.h" #include <bits/stdc++.h> using namespace std; long long find_maximum(int k,vector<vector<int>>x){ vector<vector<int>> ans; vector<int> vec; for(int i=0;i<x.size();i++){ vec.push_back(0); } ans.push_back(vec); allocate_tickets(ans); vec.clear(); for(int i=0;i<x.size();i++){ vec.push_back(x[i][0]); } sort(vec.begin(),vec.end()); int sz=x.size(); long long ann=0; for(int i=0;i<sz/2;i++){ ann-=vec[i]; } for(int i=sz;i<vec.size();i++){ ann+=vec[i]; } return ann; }
Compilation message
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 1 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Incorrect | 0 ms | 204 KB | WA in grader: allocate_tickets called with parameter of wrong size |
2 | Halted | 0 ms | 0 KB | - |