QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#824276 | #9771. Guessing Game | ucup-team5243# | Compile Error | / | / | C++23 | 984b | 2024-12-21 13:25:25 | 2024-12-21 13:25:26 |
Judging History
answer
#include <cplib/tmpl/sheep.hpp>
int main(){
ii(Q);
ll A = 0;
ll B = 0;
map<ll,ll> alice;
map<ll,ll> bob;
rep(i,Q){
ii(a,b);
if(alice.count(a) == 0){
alice[a] = b;
A++;
}else{
ll tmp = alice[a];
alice[a] = -1;
if((tmp != -1)){
A--;
if(bob.count(tmp) == 0){
bob[tmp] = a;
B++;
}else{
if(bob[tmp] != -1){
bob[tmp] = -1;
B--;
}
}
}
if(bob.count(b) == 0){
bob[b] = a;
B++;
}else{
ll tmp = bob[b];
if(tmp != -1){
bob[b] = -1;
B--;
}
}
}
out(A,B);
}
}
详细
answer.code:1:10: fatal error: cplib/tmpl/sheep.hpp: No such file or directory 1 | #include <cplib/tmpl/sheep.hpp> | ^~~~~~~~~~~~~~~~~~~~~~ compilation terminated.