您的位置:首页 > 其它

nyoj-458-小光棍数

2013-08-20 11:39 141 查看
#include<stdio.h>

int main()

{

 int s;

 scanf("%d",&s);

 while(s--)

 {

   unsigned long long m;

  scanf("%llu",&m);

  printf("llu\n",471+1000*(m-1));

 }

 return 0;

}

 

#include<stdio.h>

int main()

{

 int s;

 scanf("%d",&s);

 while(s--)

 {

   long long m;

  scanf("%lld",&m);

  if(m==1)

  printf("471\n");

  else

  printf("%lld471\n",m-1);

 }

 return 0;

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: