文章

35

粉丝

0

获赞

144

访问

7.3k

头像
还是那句话,计试能ac就行
P1031
发布于2025年3月14日 13:09
阅读数 180

#include <bits/stdc++.h>
using namespace std;
int main() {
    string s;
    while(cin>>s){
    	int count=0;
    	for(int i=0;i<s.length();i++){
    		if(s[i]=='.'){
    		for(int j=1;j<s.length();j++) {
    			if(s[j]=='0'){
    				count=0;
				}else{
					count++;
				}
			}
    		
    	}
		}
		if(count>0){
			cout<<"No"<<endl;
		}else{
			cout<<"Yes"<<endl;
		}
	}
    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发