From 9e28e4c7b67c54229df11d355047ac8a88ea1817 Mon Sep 17 00:00:00 2001 From: Nguyễn Gia Phong Date: Sun, 15 Dec 2019 15:09:13 +0700 Subject: Normalize pathname --- 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