diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-03-12 00:34:57 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-03-12 00:34:57 -0300 |
commit | f41227e09bb59c626cc601a4bf846814b15915db (patch) | |
tree | 2554bc8e1ea9458f054c035ddfecad807123b86f | |
parent | dce7b0a3aef80e3204ad7897f1af14999b4ee59d (diff) | |
download | docs-f41227e09bb59c626cc601a4bf846814b15915db.tar.gz docs-f41227e09bb59c626cc601a4bf846814b15915db.tar.bz2 docs-f41227e09bb59c626cc601a4bf846814b15915db.tar.xz docs-f41227e09bb59c626cc601a4bf846814b15915db.zip |
Ryan_Calculator.py - Find out how many Tonori Delight you need per stage
-rw-r--r-- | ryan_calculator.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ryan_calculator.py b/ryan_calculator.py new file mode 100644 index 0000000..a785036 --- /dev/null +++ b/ryan_calculator.py @@ -0,0 +1,12 @@ +q=s=0 +while (q < 100): + if (q < 25): + s+=(q**2)+18 + else: + s+=625+18*(q-24) + q+=1 + +if (q < 25): + print "%d : %d (individual cost %d)" % (q, s, (q**2)+18) +else: + print "%d : %d (individual cost %d)" % (q, s, 625+18*(q-24)) |