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

By | 2017-04-07T22:11:45+00:00 January 6th, 2017|Categories: C/C++, Programming|Tags: , , , , , , , |

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; }