fork download
  1. #include <stdio.h>
  2.  
  3. int piyo(int x, int y){
  4. if(x<=6){
  5. return 500;
  6. }
  7. else if(x<=12){
  8. return 1000;
  9. }
  10. else if(y==1){
  11. return 1000;
  12. }
  13. else if(x<=15){
  14. return 1500;
  15. }
  16. else{
  17. return 2000;
  18. }
  19. }
  20.  
  21. int main(void) {
  22. // your code goes here
  23. printf("%d",piyo(26,1));
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0s 5328KB
stdin
Standard input is empty
stdout
1000