#include<iostream>
using namespace std;
long long f(long long a)
{
long long day=0;
if(a<=5)
{
return 1;
}
else
{
a=a-5;
day+=1;
while(1)
{
day+=a/4;
if(a%4>0)
{
return day+1;
}
if(a%4==0)
{
return day;
}
}
}
}
int main()
{
long long T;
long long c[100001];
cin>>T;
long long sum=0;
for(int i=0;i<T;i++)
{
cin>>c[i];
}
for(int i=0;i<T;i++)
{
sum=f(c[i])+c[i]-1;
cout<<sum*10<<" ";//经验值
cout<<(f(c[i]))<<endl;//天数
}
return 0;
}
可能是后期数据过大,导致只通过14测试点
标签:return,cout,int,十三号,long,day,九月 From: https://www.cnblogs.com/youxiandechilun/p/17703470.html