Submission #148812

#TimeUsernameProblemLanguageResultExecution timeMemory
1488121 WA = 5 Push Up (#200)King of Chairs (FXCUP4_chairs)C++17
100 / 100
159 ms10456 KiB
#include "king.h" //#include <bits/stdc++.h> #include <vector> using namespace std; long long SendInfo(vector<int> W, vector<int> C) { int N = W.size(); return 0; }
#include "vassal.h" //#include <bits/stdc++.h> #include <vector> #include <set> #include <utility> using namespace std; long long BB; vector<int> schedule(11); int N; int idx = -1; set<pair<int,int> > S; void Init(long long B, vector<int> C){ int N = C.size(); for(int i = 0; i < N; i++) S.insert({C[i], i}); } int Maid(int W){ auto it = S.lower_bound({W,-1}); if(it == S.end()) return -1; int ret = it->second; S.erase(it); return ret; }

Compilation message (stderr)

king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:6:6: warning: unused variable 'N' [-Wunused-variable]
  int N = W.size();
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...