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 446 times, 1 visits today)

About the Author:

Leave A Comment