fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int n,x,y;
  6. cin>>n>>x>>y;
  7. string s;
  8. cin>>s;
  9. string s1=s.substr(5,3);
  10. bool l=true;
  11. for(int i=0;i<s1.size();i++)
  12. {
  13. if(s[i]!='o')
  14. {
  15. l=false;
  16. break;
  17.  
  18. }
  19. }
  20. if(l)
  21. {
  22. cout<<"yes"<<endl;
  23.  
  24. }
  25. else
  26. {
  27. cout<<"no"<<endl;
  28.  
  29. }
  30.  
  31. // your code goes here
  32. return 0;
  33. }
  34.  
Success #stdin #stdout 0.01s 5292KB
stdin
10 6 8
xoxxooooxo
stdout
no