fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. const int OLD = 2015;
  5. const int ROLLED = 10000;
  6.  
  7. int main() {
  8. int a, b;
  9. cin >> a >> b;
  10. if (a < ROLLED) {
  11. if (b >= OLD) {
  12. cout << "POTI CUMPARA!";
  13. }
  14. if (b < OLD) {
  15. cout << "E VECHE!";
  16. }
  17. }
  18. if (a >= ROLLED) {
  19. cout << "E RULATA!";
  20. }
  21. return 0;
  22. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
POTI CUMPARA!