dev上是对的为什么只有10分?
查看原帖
dev上是对的为什么只有10分?
582118
ZHR20100222楼主2022/6/9 22:38

蒟蒻太垃圾了!

#include<iostream>
#include<cstdio>
#include<bits/stdc++.h>
using namespace std;
string s;
int i;
int main(){
	cin>>s;
	for(i=0;i<=s.length();i++){
		if(s[i]>='0'&&s[i]<='9'){
			cout<<s[i]<<" ";
		}
	}
	return 0;
}
2022/6/9 22:38
加载中...