QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#34674 | #4251. Game | lunchbox# | Compile Error | / | / | C++17 | 764b | 2022-06-12 04:35:52 | 2024-05-26 00:51:50 |
Judging History
你现在查看的是最新测评结果
- [2024-05-26 00:51:50]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2022-06-12 04:35:52]
- 提交
answer
#pragma GCC optimize ("Ofast")
#pragma GCC target ("avx2")
#include "game.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 30000;
std::vector<int> ej[N];
int ww[N], tt[N], n;
void init(int n_, int k) {
n = n_;
for (int i = 0; i < n; i++)
ej[i].clear(), ww[i] = 0;
for (int i = 0; i < k - 1; i++)
ej[i].push_back(i + 1), ww[i + 1]++;
}
int add_teleporter(int u, int v) {
static int qu[N];
int head = 0, cnt = 0;
ej[u].push_back(v), ww[v]++;
for (int i = 0; i < n; i++)
if ((tt[i] = ww[i]) == 0)
qu[head + cnt++] = i;
while (cnt) {
int i = qu[head++];
cnt--;
for (int j : ej[i])
if (--tt[j] == 0)
qu[head + cnt++] = j;
}
return head != n;
}
詳細信息
In file included from /usr/include/c++/13/string:43, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from answer.code:5: /usr/include/c++/13/bits/allocator.h: In destructor ‘std::_Vector_base<int, std::allocator<int> >::_Vector_impl::~_Vector_impl()’: /usr/include/c++/13/bits/allocator.h:184:7: error: inlining failed in call to ‘always_inline’ ‘std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = int]’: target specific option mismatch 184 | ~allocator() _GLIBCXX_NOTHROW { } | ^ In file included from /usr/include/c++/13/vector:66, from /usr/include/c++/13/functional:64, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53: /usr/include/c++/13/bits/stl_vector.h:133:14: note: called from here 133 | struct _Vector_impl | ^~~~~~~~~~~~