凉肝的比赛
愉快的补题时间
A - Mezo Playing Zoma
题干传送门
题意
签到题
思路+代码
#include <cstdio>
#include <iostream>
using namespace std;
int n,count=0;
string s;
int main(){
cin>>n;
cin>>s;
printf("%d\n",n+1);
return 0;
}
G - HQ9+
CodeForces - 133A
题干传送门
题意
签到题
思路+代码
#include <cstdio>
#include <iostream>
using namespace std;
int main(){
int flag=0;
string p;
cin>>p;
for(int i=0;i<p.length();i++){
if(p[i]=='H'||p[i]=='Q'||p[i]=='9')
flag=1;
}
if(flag==0)
cout<<"NO"<<endl;
else
cout<<"YES"<<endl;
return 0;
}