| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 965254 | willychan | Ancient Machine 2 (JOI23_ancient2) | C++17 | 85 ms | 1764 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 B = N+1;
string ans="";
for(int i=1;i<B;i++){
int m = i+2;
vector<int> a(m);
vector<int> b(m);
for(int j=0;j<i-1;j++){
a[j]=j+1;
b[j]=j+1;
}
a[i-1] = i;
b[i-1] = i+1;
a[i]=i;
b[i]=i;
a[i+1]=i+1;
b[i+1]=i+1;
int k = Query(m,a,b);
if(k==i) ans.push_back('0');
else ans.push_back('1');
}
return ans;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
