【题目描述】
【输入】
【输出】
【输入样例】
【输出样例】
#include<iostream> #include<cstring> using namespace std; string str; char A,B; int Y=1,len; int main(){ cin>>str; len=str.size(); for(int x=1;x<len;++x){ if(x*2-1>=len)A='#'; else A=str[2*x-1]; if(x*2>=len)B='#'; else B=str[2*x]; if(A=='#' && B!='#')Y=0; if(B=='#' && A!='#')Y=0; } if(Y)cout<<"Yes"; else cout<<"No"; return 0; }//ok
Powered by 孙会中 @ 2024-2026【 www.sunhuizhong.cn 】All rights reserved
访问统计:386183 本月:281 上月:799 今日:7 昨日:6 当前在线:1人