This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# coding: utf-8 | |
# Print Graham's number | |
# | |
# Just a code for showing definition. | |
# It causes runtime error of maximum recursion. | |
def G(n): | |
# G function of Graham's number | |
if n == 0: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# 呪いのカバンパズル | |
# https://togetter.com/li/1265539 | |
# 以下のアルゴリズムの計算 | |
# https://twitter.com/kyodaisuu/status/1039229105357520897 | |
# 若干アルゴリズムを調整した | |
from statistics import mean, median, stdev | |
from scipy.optimize import fmin | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set autoindent | |
set expandtab | |
let _curfile=expand("%:r") | |
if _curfile == 'Makefile' | |
set noexpandtab | |
endif | |
set tabstop=4 | |
set shiftwidth=4 | |
set cursorline |