题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6322
题解:打表找规律。
#include<cstdio>
#include<algorithm>
#include<cstring>
using namespace std;
int main()
{
int ncase;
scanf("%d",&ncase);
long long n;
while(ncase--)
{
scanf("%lld",&n);
if(n==1) puts("5");
else
printf("%lld\n",n+5);
}
return 0;
}