Last active
June 15, 2019 16:37
-
-
Save gecko655/7dac70f5723110c74d8daaa583f68f8f to your computer and use it in GitHub Desktop.
かほは優しいし可愛いのか?
This file contains hidden or 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
# 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