#include<bits/stdc++.h>
using namespace std;
int a[8],q,w,e,x,y,z;
int po(int x)
{
if(x==10)cout<<'A';
else if(x==11)cout<<'B';
else if(x==12)cout<<'C';
else if(x==13)cout<<'D';
else if(x==14)cout<<'E';
else if(x==15)cout<<'F';
else cout<<x;
}
char t;
int main()
{
for(int i=1;i<=7;i++)
{
cin>>t;
if(t=='#')continue;
else if(t=='F')a[i]=15;
else if(t=='E')a[i]=14;
else if(t=='D')a[i]=13;
else if(t=='C')a[i]=12;
else if(t=='B')a[i]=11;
else if(t=='A')a[i]=10;
else a[i]=int(t)-48;
}
x=255-(a[2]*16+a[3]);
y=255-(a[4]*16+a[5]);
z=255-(a[6]*16+a[7]);
cout<<'#';
q=x/16;
po(q);
x=x%16;
po(x);
w=y/16;
po(w);
y=y%16;
po(y);
e=z/16;
po(e);
z=z%16;
po(z);
return 0;
}
双生独白样例全过,输出没问题,但提交全是RE??
附RE图片