回复 3楼 草狼
我还没注意, 那应该是 《有道》翻译的吧,

我就是真命天子,顺我者生,逆我者死!
程序代码:#include<iostream>
using namespace std;
int main()
{
char res[5010],cor[5010];
int n,i,j,a,b,temp,counts;
cin>>n;
getchar();
while (n--)
{
temp=i=j=0;
counts=a=b=6;
while (res[i++] = getchar())
{
if (res[i-1] == 'D' && res[i-2] == 'N' && res[i-3] == 'E')
break;
}
getchar();
while (cor[j++] = getchar())
{
if (cor[j-1] == 'D' && cor[j-2] == 'N' &&cor[j-3] == 'E')
break;
}
getchar();
while(a<i && b<j)
{
if (res[a] == cor[b])
a++,b++,counts++;
else if (res[a] == ' ' || res[a] == '\t' || res[a] == '\n')
a++;
else if (cor[b] == ' ' ||cor[b] == '\t' || cor[b] == '\n')
b++;
else
{temp=-1;break;}
}
if (temp==-1)
cout<<"Wrong Answer"<<endl;
else if (a==b&&a==counts)
cout << "Accepted"<<endl;
else
cout << "Presentation Error"<<endl;
}
return 0;
}
