about summary refs log tree commit diff
path: root/others/other/bunny.py
diff options
context:
space:
mode:
authorRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-20 15:11:08 +0700
committerRaphael McSinyx <vn.mcsinyx@gmail.com>2017-06-20 15:11:08 +0700
commit4ac65940e064c5b587699549a0c7277d2dd733a8 (patch)
treee2a6052f5f3dcd56e760ed85b13310147aeea42b /others/other/bunny.py
parenta0c92beee1199f13227b1642ccf07f264912e5ad (diff)
downloadcp-4ac65940e064c5b587699549a0c7277d2dd733a8.tar.gz
Thầy Nguyễn Thanh Tùng ôn THT XXIII
Diffstat (limited to 'others/other/bunny.py')
-rwxr-xr-xothers/other/bunny.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/others/other/bunny.py b/others/other/bunny.py
new file mode 100755
index 0000000..befe288
--- /dev/null
+++ b/others/other/bunny.py
@@ -0,0 +1,4 @@
+#!/usr/bin/env python3
+with open('bunny.inp') as fi, open('bunny.out', 'w') as fo:
+    # OEIS A069905 (http://oeis.org/A069905)
+    print(((int(fi.read()) + 3) ** 2 + 6) // 12 % 10 ** 6, file=fo)