2009-10-29 11:30:35來源不明

我也愛偶數

/****************************************************************/

#include<stdlib.h>
#include<stdio.h>

main()

  int N,M;
   while(scanf("%d %d",&N,&M)==2)
      {
        M=M-M%2;
        N=N+N%2;
        printf("%d\n",(M+N)*((M-N)/2+1)/2);
      }
  return 0;
}