QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#291043#1400. Water BottleMoRanSkyCompile Error//C++23444b2023-12-26 04:34:372023-12-26 04:34:37

Judging History

你现在查看的是最新测评结果

  • [2023-12-26 04:34:37]
  • 评测
  • [2023-12-26 04:34:37]
  • 提交

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.