Ac_Code_cn_com @ 2023-10-20 15:18:58
#include<bits/stdc++.h>
using namespace std;
string a;
long long b;
int main(){
cin>>a>>b;
for(long long i=0;i<a.size();i++)if(a[i]==3)b--;
if(b==0)cout<<"YES";
else cout<<"NO";
return 0;
}
by Endline @ 2023-10-20 15:20:28
a[i]=='3'
这种错误还是挺神秘的
by Ac_Code_cn_com @ 2023-10-20 15:24:51
cccccccccccccccccccccccccccccccccc
by Xiaonao_Dali @ 2023-10-30 22:25:48
你仔细想想,字符串取字符用单引号,没单引号判断ASCII码吧