#include "stdlib.h" #include "algorithm" #include "iostream" #include <cstdio> #include "string" #include <iomanip> #include <map> #include <set> #include "math.h" using namespace std; map<int, bool> mp; set<string> st; int judge(int n) { int i; for (int i = 2; i <= sqrt(n); i++) { if (n%i == 0) { return 0; break; } } return 1; } int main() { int n,k=1; while (cin >> n) { if(judge(n))cout << "Case #" << k++ << ": I'm richer than any one" << endl; else { cout << "Case #" << k++ << ": What a fxcking day" << endl; } } return 0; } |
Double click to view unformatted code.