Created
April 26, 2016 08:02
-
-
Save PreSoichiSumi/078c1cfad3f17af1b407ef36fcad4628 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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