# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1084550 | PagodePaiva | Ancient Machine 2 (JOI23_ancient2) | C++17 | 89 ms | 1240 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "ancient2.h"
#include<bits/stdc++.h>
using namespace std;
namespace {
int variable_example = 1;
} // namespace
std::string Solve(int N) {
// int m = 2;
// std::vector<int> a(m), b(m);
//variable_example = Query(m, a, b);
string s;
for(int i = 0;i < N;i++){
int m = i+3;
vector <int> a, b;
for(int j = 0;j < m-3;j++){
a.push_back(j+1);
b.push_back(j+1);
}
a.push_back(i+1);
b.push_back(i+2);
a.push_back(i+1);
a.push_back(i+2);
b.push_back(i+1);
b.push_back(i+2);
int v = Query(m,a, b);
if(v == i+1) s.push_back('0');
else s.push_back('1');
}
return s;
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |