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;
}
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;
}
相关文章推荐
- NYOJ:458小光棍数
- NYOJ-小光棍数-458
- nyoj 458 小光棍数
- [原]NYOJ-小光棍数-458
- nyoj-458-小光棍数
- NYOJ--458 小光棍数
- NYOJ-458 小光棍数
- [原]NYOJ-小光棍数-458
- nyoj458小光棍数
- NYOJ-458 小光棍数
- nyoj458小光棍数
- nyoj458小光棍数
- NYOJ 458 小光棍数
- NYOJ-458-小光棍数-2013年09月18日09:37:10
- nyoj题目458:小光棍数
- NYOJ-458:小光棍数
- nyoj-458-小光棍数
- NYOJ 458题 小光棍数
- nyoj 458 小光棍数 【同余定理】
- NYOJ458 - 小光棍数