https://i0.wp.com/eblogarithm.com/wp-content/uploads/2017/01/Codeforces-Round-388-Div-2-problem-A-Bachgold-Problem-Solution-in-CC1.png?fit=640%2C360

Codeforces Round #388 (Div. 2), problem: (A) Bachgold Problem Solution in C/C++

Codeforces Round #388 (Div. 2), problem: (A) Bachgold Problem Solution in C/C++

 

#include<stdio.h>
typedef unsigned u;
int main()
{
u n;
scanf(“%u”,&n);
printf(“%u\n”,n>>1);
if(n&1){printf(“3 “);n-=3;}
while(n){printf(“2 “);n-=2;}
return 0;
}

 

(Visited 314 times, 1 visits today)



There are no comments

Add yours

Leave a Reply

%d bloggers like this: