0

tried dividing n in group of 50s, using if and print the rest, try correcting loop cin>>n;g=n;if(g>>50) {g=n-50; }cout<<g;

Sample ex: first bus will transport 50 passengers, leaving 126-50=76 in the station. The next one will leave 26 in the station, thus, the last bus will take all of the 26 passengers

18th May 2021, 11:43 AM
RAESEN
RAESEN - avatar
1 Odpowiedź
0
Your question is not clear. Please describe it with more details. https://www.sololearn.com/discuss/1316935/?ref=app https://www.sololearn.com/discuss/333866/?ref=app
18th May 2021, 12:13 PM
你知道規則,我也是
你知道規則,我也是 - avatar