fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int n, is_inner ;
  5. cin >> n >> is_inner;
  6. if(n < 0 || n > 20 || (is_inner != 0 && is_inner != 1)) {
  7. cout << "INVALID" << endl;
  8. return 0;
  9. }
  10. if(is_inner) {
  11. cout << "0đ" << endl;
  12. } else {
  13. if(n <= 5) {
  14. cout << "15000đ" << endl;
  15. } else {
  16. cout << "0đ" << endl;
  17. }
  18. }
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 5308KB
stdin
5 1
stdout