Elavenil runs a popular bakery in his native. Elavenil has now finished baking and frosting his cupcakes, it's time to package them. Elavenil has N cupcakes, and needs to decide how many cupcakes to place in each package. Each package must contain the same number of cupcakes. Elavenil will choose an integer A between 1 and N, inclusive, and place exactly A cupcakes into each package. Elavenil makes as many packages as possible. Elavenil then gets to eat the remaining cupcakes. Elavenil enjoys eating cupcakes very much. Help Elavenil choose the package size A that will let him eat as many cupcakes as possible.
#include <stdio.h>
int main(){
int n;
scanf("%d",&n);
printf("%d",(n/2)+1);
return 0;}
Comments
Post a Comment