QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#20047 | #3098. Ancient Machine | qingyu_orz | Compile Error | / | / | C++20 | 898b | 2022-02-14 16:50:36 | 2023-01-17 10:39:41 |
Judging History
你现在查看的是最新测评结果
- [2023-08-10 23:21:45]
- System Update: QOJ starts to keep a history of the judgings of all the submissions.
- [2023-01-17 10:39:41]
- 评测
- 测评结果:Compile Error
- 用时:0ms
- 内存:0kb
- [2022-02-14 16:50:36]
- 提交
Anna
#include<bits/stdc++.h>
#include "Anna.h"
using namespace std;
void Anna(int n,auto g){
int flag=0,lst=-1;
string st;
for(auto cu:g){
int ff=1;
if(cu=='Y')ff=0;
else if(flag&&cu=='X')ff=0;
else if(!flag&&cu=='Z')ff=0;
else if(cu=='X')ff=2;
else ff=1;
if(ff==0)st+='0';
else{
if(cu!='Z'||lst!=1)st+='1';
else st+='0';
if(cu=='Z')lst=1;
if(ff==2)st+='0';
}
}
for(int i=0;i<st.size();++i)Send(st[i]);
}
Bruno
#include<bits/stdc++.h>
#include "Bruno.h"
using namespace std;
int pre[100005],nxt[100005];
void Bruno(int n,int gs,auto g){
set<int>se;
for(int i=1;i<=n;++i)pre[i]=i-1,nxt[i]=i+1;
int X=-1,wz=0;
for(auto cu:g){
++wz;
if(cu==1&&X==-1){
X=wz;
--wz;
continue;
}
if(cu==0)continue;
int df=wz;
while(df>=X){
Remove(df);
nxt[pre[df]]=nxt[df];
pre[nxt[df]]=pre[df];
df=pre[df];
}
}
}
Details
/usr/bin/ld: /tmp/ccQ7s2zR.o: in function `main': grader_Anna.cpp:(.text.startup+0x192): undefined reference to `Anna(int, std::vector<char, std::allocator<char> >)' collect2: error: ld returned 1 exit status