2 条题解

  • 0
    @ 2024-6-29 10:14:58
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	string s;
    	int others=0;
    	cin>>s;
    	for(int i=0;i<s.length();i++){
    			if(s[i]>='0' and s[i]<='9'){
    				;
    			}else{
    				others++;
    			}
    		}
    				if(others==0) cout<<"yes";
    				else cout<<"no";
    	return 0;
    }
    
    • 0
      @ 2023-5-28 10:25:51

      image

      • 1

      信息

      ID
      629
      时间
      1000ms
      内存
      256MiB
      难度
      9
      标签
      (无)
      递交数
      10
      已通过
      8
      上传者