about summary refs log tree commit diff
path: root/others/other/gc.go
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2017-08-02 10:44:26 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2017-08-02 10:44:26 +0700
commit44f9d4b8e63d4f7f1b447744124e95f22c8ce296 (patch)
treebbeb1869e269819722ed1b3d82050c03d31e9d9f /others/other/gc.go
parent03592e34c45c0ee5d8a3d82e76b4361813fcba7a (diff)
downloadcp-44f9d4b8e63d4f7f1b447744124e95f22c8ce296.tar.gz
Add others/other/{colorec.pas,gc.go,prodig.go}
Diffstat (limited to 'others/other/gc.go')
-rw-r--r--others/other/gc.go13
1 files changed, 13 insertions, 0 deletions
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)
+	}
+}