```cpp
#include<bits/stdc++.h>
using namespace std;
int a,b,c;
char n[300];
int main()
{
cin>>n;
int len=strlen(n);
for(int i=0;i<len/5;i++)
{
char m=n[i*5],t=n[i*5+3];
if(m='a')
{
if(t<='9'&&t>='0')
{
a=int(t-'0');
}
if(t=='b')
{
a=b;
}
if(t=='c')
{
a=c;
}
}
else if(m=='b')
{
if(t<='9'&&t>='0')
{
b=int(t-'0');
}
if(t=='a')
{
b=a;
}
if(t=='c')
{
b=c;
}
}
else
{
if(t<='9'&&t>='0')
{
c=int(t-'0');
}
if(t=='a')
{
c=a;
}
if(t=='b')
{
c=b;
}
}
}
printf("%d %d %d",a,b,c);
return 0;
}
```
改了,但还10分
by Greeper @ 2024-07-25 14:56:54
第12行`m='a'`?不应该是`m=='a'`吗
by jiawenbo @ 2024-08-03 09:18:57
@[Greeper](/user/1311900)
by jiawenbo @ 2024-08-03 09:19:48