Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- int n;
- cin >> n;
- cin.ignore();
- int sCount=0,
- tCount=0;
- for(int i=0; i<n; i++) {
- string s;
- getline(cin, s);
- for(int j=0; j<s.length(); j++) {
- if(tolower(s[j]) == 's')
- sCount++;
- else if(tolower(s[j]) == 't')
- tCount++;
- }
- }
- if(sCount > tCount || sCount == tCount) {
- cout << "French";
- } else {
- cout << "English";
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment