#37344: c++ 簡單解


s1110801@cchs.kh.edu.tw (s10801)

School : 高雄市立中正高級中學
ID : 231754
IP address : [163.32.60.235]
Last Login :
2024-01-15 11:17:29
d068. 該減肥了! -- 板橋高中教學題 | From: [36.238.56.82] | Post Date : 2023-09-02 20:45

    int n,a=0;
    cin>>n;
    a=(n>50); //此行是用來判斷真假 真為1 假為0
    cout<<n-a;
    return 0;

 
ZeroJudge Forum