80求助
查看原帖
80求助
1388504
Ryan40420楼主2025/1/1 15:24

这道题我足足 JudgingJudging 了1分钟,本来以为要MLETLE,结果(https://www.luogu.com.cn/record/196768434) 贴代码:

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	int a=0,b;
	cin>>s;
	b=s.size();
	for(int i=0;i<b;i++){
		if(isalnum(char(s[i]))==0){
			continue;
		}else{
			a++;
		}
	}
	cout<<a<<endl;
	return 0;
}

求大佬

2025/1/1 15:24
加载中...