</p>
```cpp
if(a>12&&a%10!=0)
{
a=a%10;
total++;
}
```
### 没对个位是2的数进行判断
### 因为个位是2的数应改为12,而不是2
### 代码应改为
```cpp
if(a>12&&a%10!=0)
{
if(a%10==2){
a=12;
total++;
}
else{
a=a%10;
total++;
}
}
```
by www__init__Harry @ 2023-10-18 22:51:08
要输入一个char字符
by LeoChen1229A @ 2024-02-20 08:32:37
int a,b;
char x;
cin>>a>>x>>b;
by LeoChen1229A @ 2024-02-20 08:34:55
回错人了 sorry
by LeoChen1229A @ 2024-02-20 08:36:51