fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int weight;
  5. scanf("%d", &weight);
  6. if (weight > 50)
  7. weight -= 1;
  8. printf("%d", weight);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5288KB
stdin
45
stdout
45