diff options
Diffstat (limited to 'others/other/bunny.py')
-rwxr-xr-x | others/other/bunny.py | 4 |
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) |