QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#203225 | #4006. A=B | fz_zsl | WA | 0ms | 3732kb | C++14 | 3.0kb | 2023-10-06 16:12:35 | 2023-10-06 16:12:36 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize(2)
#define LL long long
#define uLL unsigned long long
#define re register
#define LD __float128
#define DB double
#define ci const int
#define pii pair<int,int>
#define ppi pair<pii,int>
#define pll pair<LL,LL>
#define pb push_back
#define fi first
#define se second
#define mp make_pair
#define UI unsigned int
#define Int __int128
#define N 1003
// #define getchar gc
char gc() {
// return getchar();
const int SZ = 1 << 17;
static char buf[SZ], *S, *T;
if(S == T) T = (S = buf) + fread(buf, 1, SZ, stdin);
return S == T ? EOF : *S ++;
}
void cmax(int& a,int b){
(a<b)&&(a=b);
}
void cmin(int& a,int b){
(a>b)&&(a=b);
}
void Read(int& a){
char c=a=0,f=0;
while(c<'0'||c>'9')c=getchar(),f|=c=='-';
while(c>='0'&&c<='9')a=(a*10)+(c^'0'),c=getchar();
f&&(a=-a);
}
void Read(LL& a){
char c=a=0,f=0;
while(c<'0'||c>'9')c=getchar(),f|=c=='-';
while(c>='0'&&c<='9')a=(a*10)+(c^'0'),c=getchar();
f&&(a=-a);
}
char Ssr[20];
void Print(LL a,char c='\n'){
// cerr<<a<<endl;
if(a<0)putchar('-'),a=-a;
int len=0;
while(a)Ssr[++len]='0'^(a%10),a/=10;
len==0&&(Ssr[++len]='0');
while(len)putchar(Ssr[len--]);
putchar(c);
}
void cmax(LL& a,LL b){
a<b&&(a=b);
}
void cmin(LL& a,LL b){
a>b&&(a=b);
}
LL Rand(LL res=0,int len=12){
for(;len;--len)res=res*10+rand()%10;
return res;
}
bool Bar;
int n,m,a,b,P[N],Mk[N],_1,_0,p;
char S[N];
bool Ka;//real,imag
int main() {
// printf("Memory:%lf\n",(&Ka-&Bar)/1024.0/1024.0);
// freopen("A.in","r",stdin);
// freopen("A.out","w",stdout);
// n=66;
// for(int i=1;i<=n;++i){
// scanf("%s",S+1);
// printf("puts(\"%s\");\n",S+1);
// }
puts("YE=(return)1");
puts("DY=(return)0");
puts("Da=DA");
puts("Db=DB");
puts("Dc=DC");
puts("Aa=aA");
puts("Ab=bA");
puts("Ac=cA");
puts("Ba=aB");
puts("Bb=bB");
puts("Bc=cB");
puts("Ca=aC");
puts("Cb=bC");
puts("Cc=cC");
puts("xa=ax");
puts("xb=bx");
puts("xc=cx");
puts("xE=Ex");
puts("ya=ay");
puts("yb=by");
puts("yc=cy");
puts("yE=Ey");
puts("za=az");
puts("zb=bz");
puts("zc=cz");
puts("zE=Ez");
puts("Ex=oE");
puts("ao=oa");
puts("bo=ob");
puts("co=oc");
puts("Ey=pE");
puts("ap=pa");
puts("bp=pb");
puts("cp=pc");
puts("Ez=qE");
puts("aq=qa");
puts("bq=qb");
puts("cq=qc");
puts("Yoa=Yaa");
puts("Yob=Yab");
puts("Yoc=Yac");
puts("YoE=YaE");
puts("Yo=AYa");
puts("Ypa=Yba");
puts("Ypb=Ybb");
puts("Ypc=Ybc");
puts("YpE=YbE");
puts("Yp=BYb");
puts("Yqa=Yca");
puts("Yqb=Ycb");
puts("Yqc=Ycc");
puts("YqE=YcE");
puts("Yq=CYc");
puts("AYa=Yx");
puts("BYb=Yy");
puts("CYc=Yz");
puts("AY=Y");
puts("BY=Y");
puts("CY=Y");
puts("aX=Da");
puts("bX=Db");
puts("cX=Dc");
puts("aD=Da");
puts("bD=Db");
puts("cD=Dc");
puts("Za=aE");
puts("Zb=bE");
puts("Zc=cE");
puts("Ea=aE");
puts("Eb=bE");
puts("Ec=cE");
puts("S=XYZ");
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3656kb
input:
0
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #2:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
100
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #3:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
200
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #4:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
300
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #5:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
400
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #6:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
500
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
ok Test 0.
Test #7:
score: -100
Wrong Answer
time: 0ms
memory: 3732kb
input:
795913901
output:
YE=(return)1 DY=(return)0 Da=DA Db=DB Dc=DC Aa=aA Ab=bA Ac=cA Ba=aB Bb=bB Bc=cB Ca=aC Cb=bC Cc=cC xa=ax xb=bx xc=cx xE=Ex ya=ay yb=by yc=cy yE=Ey za=az zb=bz zc=cz zE=Ez Ex=oE ao=oa bo=ob co=oc Ey=pE ap=pa bp=pb cp=pc Ez=qE aq=qa bq=qb cq=qc Yoa=Yaa Yob=Yab Yoc=Yac YoE=YaE Yo=AYa Ypa=Yba Ypb=Ybb Ypc...
result:
wrong answer WA on Test case 1. abcabbabcScabb 1