没学过字符串的蒟蒻求助
查看原帖
没学过字符串的蒟蒻求助
517126
hjl_AK_IOI楼主2021/7/1 23:38

好吧,绞尽脑汁搞了前4个AC,20分,真的没学过,不是凡
代码```

#include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
string b="1";
int s=0;
cin>>a;
if(a==b)
s++;
cout<<s;
return 0;
}
2021/7/1 23:38
加载中...