首页 > 其他 > 详细

“What a boring world!” Julyed felt so bored that she began to write numbers on the coordinate paper. She wrote a “0” on the center, then wrote the follow numbers clockwise, which looked like a snake a

时间:2016-06-10 20:19:29      阅读:245      评论:0      收藏:0      [点我收藏+]

#include<math.h>
#include<stdio.h>
int main()
{
int a,b;
int s;
int t;
while(scanf("%d",&a)!=EOF)
{
int i;
for(i=0;i<a;i++){
scanf("%d",&b);
s=pow(b+b+1,2);
t=s-(b+b+1)-(b+b+1)/2;
printf("%d\n",t);
}

}

}

“What a boring world!” Julyed felt so bored that she began to write numbers on the coordinate paper. She wrote a “0” on the center, then wrote the follow numbers clockwise, which looked like a snake a

原文:http://www.cnblogs.com/qinanzi/p/5574139.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!