Changed the folder structure of codeforces problemsets
This commit is contained in:
28
codeforces/problemsets/hq9+/a.cpp
Normal file
28
codeforces/problemsets/hq9+/a.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(){
|
||||
ios::sync_with_stdio(0);
|
||||
cin.tie(0);
|
||||
|
||||
string s;
|
||||
getline(cin, s);
|
||||
bool no = true;
|
||||
for(char& c : s){
|
||||
if(c == 'H' || c == 'Q' || c == '9'){
|
||||
cout << "YES";
|
||||
no = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(no){
|
||||
cout << "NO";
|
||||
}
|
||||
|
||||
cout << flush;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user