diff options
author | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-08-02 10:44:26 +0700 |
---|---|---|
committer | Raphael McSinyx <vn.mcsinyx@gmail.com> | 2017-08-02 10:44:26 +0700 |
commit | 44f9d4b8e63d4f7f1b447744124e95f22c8ce296 (patch) | |
tree | bbeb1869e269819722ed1b3d82050c03d31e9d9f /others/other/gc.go | |
parent | 03592e34c45c0ee5d8a3d82e76b4361813fcba7a (diff) | |
download | cp-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.go | 13 |
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) + } +} |