#55535: C++解法


yp11550392@yphs.tp.edu.tw (ZEROJUDGE)


#include <iostream>

using namespace std;

int main(){ 
  int weight;
  cin >> weight;

  //如果客人太重的話要幫他減重
  if(weight> 50){
     weight--;
  }
  
  cout<< weight;
  
  return 0;
}

 

//嚴禁抄襲!