Skip to content

Instantly share code, notes, and snippets.

@gecko655
Last active June 15, 2019 16:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gecko655/7dac70f5723110c74d8daaa583f68f8f to your computer and use it in GitHub Desktop.
Save gecko655/7dac70f5723110c74d8daaa583f68f8f to your computer and use it in GitHub Desktop.
かほは優しいし可愛いのか?
# require: https://github.com/kakakaya/goshindan
for i in `seq 1 50000`
do
ret=`goshindan s -s 531740 -u $i`
pr=`echo "scale=5;1-((18225-1)/18225)^$i" | bc`
echo $i $pr $ret
if [[ $(echo $ret | grep 'かほは優しいし可愛い。') ]]; then
exit
fi
sleep 1 # やさしさ
done
# 出力形式
# '試行回数兼おなまえ' 'それまでに「かほは優しいし可愛い。」が出現しているべき確率' 'かほは優しいし可愛いのか?'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment