#include #include #include #include #include #include #include using namespace std; typedef vector vi; typedef map ms; int gcd(int a, int b) { int r = 1; int min = (a> s) { if(s == "bullshit") { words.clear(); games.push_back(currwords); currwords = 0; } else { if(words.find(s)==words.end()) { // cout << "adding \"" << s << "\", currwords is " << currwords << endl words[s] == 1; currwords++; } } } int g = games.size(); // cout << games.size() << endl; int i = 0; for(int j=0; j < g; j++) { i += games[j]; } cout << (i/gcd(i,g)) << " / " << (g/gcd(i,g)) << endl; return 0; }