From 44f9d4b8e63d4f7f1b447744124e95f22c8ce296 Mon Sep 17 00:00:00 2001 From: Raphael McSinyx Date: Wed, 2 Aug 2017 10:44:26 +0700 Subject: Add others/other/{colorec.pas,gc.go,prodig.go} --- others/other/gc.go | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 others/other/gc.go (limited to 'others/other/gc.go') diff --git a/others/other/gc.go b/others/other/gc.go new file mode 100644 index 0000000..38473a2 --- /dev/null +++ b/others/other/gc.go @@ -0,0 +1,13 @@ +package main + +import "fmt" + +func main() { + var c int32 + fmt.Scan(&c) + k := c/4 + 1 + println(k) + for ; k > 0; k-- { + println(c/2-k*2+2, k) + } +} -- cgit 1.4.1