hdu-1977 Consecutive sum II

#include<stdio.h>
int main()
{
    __int64 m;
    int n;
    scanf("%d",&n);
    while(n--)
    {
      scanf("%I64d",&m);
      printf("%I64d %I64d\n",m*m*m,(m+1)*(m+1)*(m+1));              
    }
return 0;    
}                                                                                      //发现许多好多题找对规律做起来非常的快。。。。。

posted @ 2015-12-18 14:39  wojiaohuangyu  阅读(8)  评论(0)    收藏  举报