Skip to content

Instantly share code, notes, and snippets.

@tondol
Last active August 29, 2015 13:57
Show Gist options
  • Save tondol/9719467 to your computer and use it in GitHub Desktop.
Save tondol/9719467 to your computer and use it in GitHub Desktop.
スクフェスのマカロン計算

マカロン計算

前提

イベント曲HARD1回で加算されるptが約230
ミス分を考慮して加算ptを225とする
また,プレイ1回に必要なマカロンが45

変数

x=目標pt
y=必要なマカロン

計算

イベント曲によるpt加算分を計算

x/225*45=x/5=y

イベント曲以外によるpt加算分を考える
これはyの数値と一緒になるのでyを目標分から引く

(x-y)/5=y
x/5-y/5=y
x/5=y*(1+1/5)=y*(6/5)
x/6=y

30kptなら5000マカロン,40kptなら6666マカロンという感じ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment