Skip to content

Instantly share code, notes, and snippets.

@PreSoichiSumi
Created April 26, 2016 08:02
Show Gist options
  • Save PreSoichiSumi/078c1cfad3f17af1b407ef36fcad4628 to your computer and use it in GitHub Desktop.
Save PreSoichiSumi/078c1cfad3f17af1b407ef36fcad4628 to your computer and use it in GitHub Desktop.
#include <iostream>
#include <string>
using namespace std;
int main(){
string str;
int count = 0;
for (int i = 0; i < 12; i++){
cin >> str;
if (str.find("r") != -1)
count++;
}
cout << count<< endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment