思路:
对于当前圆的上边界和下边界。只有相切的那固定的一个点,可以交 R*2+1条线。而其余无穷种情况均为2*R条。
#include <iostream>
#include <stdio.h>
using namespace std;
int main()
{
int T;
cin>>T;
while(T--)
{
long long R;
cin>>R;
long long temp=(R*R+R+1)/(R+1);
cout<<temp<<endl;
}
return 0;
}