From 88ae37bb28a41ea8844532c38e5cd8622b9f4701 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Sat, 22 Oct 2016 11:07:02 +0700 Subject: Add COCI 2006-2007 Contest 1 --- COCI/2006-2007/contest1/herman.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 COCI/2006-2007/contest1/herman.c (limited to 'COCI/2006-2007/contest1/herman.c') diff --git a/COCI/2006-2007/contest1/herman.c b/COCI/2006-2007/contest1/herman.c new file mode 100644 index 0000000..718a3ad --- /dev/null +++ b/COCI/2006-2007/contest1/herman.c @@ -0,0 +1,15 @@ +#include +#include + +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; +} -- cgit 1.4.1