이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define all(x) begin(x),end(x);
using namespace std;
typedef long long ll;
#include "king.h"
long long SendInfo(std::vector<int> W, std::vector<int> C) {
int N = W.size();
return W[0]*100 + W[1]*10 + W[2]*1;
}
#include <bits/stdc++.h>
#define fr(i, n, m) for(int i = (n); i < (m); i ++)
#define pb push_back
#define st first
#define nd second
#define all(x) begin(x),end(x);
using namespace std;
typedef long long ll;
/*#include "king.h"
long long SendInfo(std::vector<int> W, std::vector<int> C) {
int N = W.size();
return W[0]*100 + W[1]*10 + W[2]*1;
}
*/
#include "vassal.h"
long long BB;
set<pair<int,int> > s;
void Init(long long B, std::vector<int> C){
int N = C.size();
fr(i, 0, N) s.insert({C[i], i});
BB = B;
// ToDo
}
int Maid(int W){
auto u = s.lower_bound({W, 1e5});
s.erase(u);
return u->nd;
}
컴파일 시 표준 에러 (stderr) 메시지
king.cpp: In function 'long long int SendInfo(std::vector<int>, std::vector<int>)':
king.cpp:13:6: warning: unused variable 'N' [-Wunused-variable]
int N = W.size();
^
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |