Click
Here to go back to the homepage.
Östgötska Solution:
#include <bits/stdc++.h>
using namespace std;
int main(){
// #ifndef TESTING
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
// #endif
string word;
int t_words = 0;
double good_words = 0;
while(cin >> word){
t_words++;
if(word.find("ae") == string::npos){
good_words++;
}
}
if(good_words / t_words > 0.6){
cout << "haer talar vi rikssvenska" << endl;
} else {
cout << "dae ae ju traeligt va" << endl;
}
return 0;
}