fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5.  
  6. int a, b;
  7. cin >> a >> b;
  8.  
  9. if (a >= 10000) {
  10. cout << "E RULATA!";
  11. return 0;
  12. }
  13.  
  14. if (a <= 9999 && b < 2015) {
  15. cout << "E VECHE!";
  16. return 0;
  17. }
  18.  
  19. if (a <= 10000 && b >= 2015) {
  20. cout << "POTI CUMPARA!";
  21. return 0;
  22. }
  23.  
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0.01s 5308KB
stdin
7000 2018
stdout
POTI CUMPARA!