Submission #302599

#TimeUsernameProblemLanguageResultExecution timeMemory
302599aljasdlasCarnival Tickets (IOI20_tickets)C++14
0 / 100
1 ms384 KiB
#include "tickets.h" #include <vector> #include <bits/stdc++.h> using namespace std; #define int long long long long find_maximum(signed k, vector<vector<signed>> x) { int n = x.size(); int m = x[0].size(); vector<vector<signed>> answer(n, vector<signed>(m)); // vector<pair<int,int>> v; // for(int i = 0; i < n; i++) { // v.push_back({x[i], i}); // } // sort(v.begin(), v.end()); // for(int i = 0; i < n) for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (j < k) { answer[i][j] = j; } else { answer[i][j] = -1; } } } allocate_tickets(answer); int ans = 0; return 2; }

Compilation message (stderr)

tickets.cpp: In function 'long long int find_maximum(int, std::vector<std::vector<int> >)':
tickets.cpp:29:6: warning: unused variable 'ans' [-Wunused-variable]
   29 |  int ans = 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...