QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#291043 | #1400. Water Bottle | MoRanSky | Compile Error | / | / | C++23 | 444b | 2023-12-26 04:34:37 | 2023-12-26 04:34:37 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#include "art.h"
void solve(int n) {
vector<int> ans(n), tt(n);
iota(tt.begin(), tt.end(), 1);
fill(ans.begin(), ans.end(), n);
int lst = publish(tt);
for (int i = 1; i < n; i++) {
tt.erase(tt.begin());
tt.push_back(i);
int cur = publish(tt);
ans[(n + 1 - (cur - lst)) / 2 - 1] = i;
lst = cur;
}
answer(ans);
}
详细
answer.code:3:10: fatal error: art.h: No such file or directory 3 | #include "art.h" | ^~~~~~~ compilation terminated.