about summary refs log tree commit diff
path: root/COCI/2006-2007/contest1/herman.c
blob: 718a3ad224b073f9f9585b05dad508e19933d706 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdio.h>
#include <math.h>

int main()
{
	short r;
	long r2;

	scanf("%hd", &r);
	r2 = r * r;

	printf("%.6f\n%ld.000000\n", r2 * M_PI, r2 * 2);

	return 0;
}