#23524: ans


ce5324 (伃)

School : 臺北市私立延平高級中學
ID : 128513
IP address : [219.70.166.115]
Last Login :
2021-06-06 21:44:53
d068. 該減肥了! -- 板橋高中教學題 | From: [203.72.178.252] | Post Date : 2020-11-25 17:11

#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char** argv) {
int a;
cin>>a;
(a>50)?cout<<a-1<<endl:cout<<a<<endl;
}
 
ZeroJudge Forum