fork download
#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int i,t;
	cin>>t;
	for(int i=0;i<t;i++)
	{
		int n; cin>>n;
		unsigned int k=0;
		unsigned int l=0;
		int no=0;
		for(int j=0;j<n;j++)
		{
			int a;
			if(n/2-j<(21474) && n/2-j>=0){
			//cout<<"100000 ";
			a=100000;
			no++;
			}
			else if(j-n/2<21474 && j-n/2>=0){
			//cout<<"100000 ";
			a=100000;
			
			}
			else 
			{
			//	cout<<"1 ";
				a=3;
			}
			if(j<=n)
			k=k+a;
			else
			l=l+a;
			
		}
		cout<<k<<endl;
	//	cout<<l<<endl;
	//	cout<<no<<endl;
	}
	cout<<endl;
	return 0;
}
Success #stdin #stdout 0s 15224KB
stdin
1
100000
stdout
4294871159