12611

#include <iostream>
#include <cstdio>
#include <cstdio>
#include <cstring>
#include <vector>
#include <cmath>
#include <cstdlib>

#define INF 1000000
#define ll long long

using namespace std;

int main()
{
	int t,kase=1;
	double r,len,width;
	double up_left_x,up_left_y,up_right_x,up_right_y,lo_right_x,lo_right_y,lo_left_x,lo_left_y;
	scanf("%d",&t);
	while(t--)
	{
		scanf("%lf",&r);
		len = r/.2;
		width = len*.6;

		up_left_x = (-len)*.45;
		up_left_y = width/2;

		up_right_x = (len)*.55;
		up_right_y = width/2;

		lo_right_x = (len)*.55;
		lo_right_y = (-width)/2;

		lo_left_x =  (-len)*.45;
		lo_left_y =  (-width)/2;

		printf("Case %d:\n",kase++);
		printf("%.0lf %.0lf\n",up_left_x,up_left_y);
		printf("%.0lf %.0lf\n",up_right_x,up_right_y);
		printf("%.0lf %.0lf\n",lo_right_x,lo_right_y);
		printf("%.0lf %.0lf\n",lo_left_x,lo_left_y);

	}
	return 0;
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *