Advertisement
hasib_mo

A - Crne

Apr 18th, 2013
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.18 KB | None | 0 0
  1. /*
  2. user: hasib
  3. */
  4. #include<stdio.h>
  5. int main()
  6. {
  7.     int n, p, q;
  8.  
  9.     scanf("%d", &n);
  10.  
  11.     p = n/2;
  12.     q = n - p;
  13.  
  14.     printf("%d\n", (p+1)*(q+1));
  15.  
  16.     return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement