杭电2007
#include <stdio.h>int main (void){int m,n,i,a,b,t;while(scanf("%d%d",&m,&n)!=EOF){if(m>n)t=m,m=n,n=t;a=0,b=0;for(i=m;i<n+1;i++){if(0==i%2)a+=i*i;elseb+=i*i*i;}printf("%d %d\n",a,b);}return 0;}
补充:软件开发 , C语言 ,