Skip to content

Instantly share code, notes, and snippets.

@sup39
Created August 25, 2022 04:06
Show Gist options
  • Save sup39/5dd5dbe70724894a2fbeba19f5b98341 to your computer and use it in GitHub Desktop.
Save sup39/5dd5dbe70724894a2fbeba19f5b98341 to your computer and use it in GitHub Desktop.
cdfs = ['34.30%', '65.17%', '83.69%', '92.95%', '97.12%', '98.87%', '99.57%', '99.84%', '99.94%', '99.98%', '99.99%']
ccdfs = ['100.00%', '65.70%', '34.83%', '16.31%', '7.05%', '2.88%', '1.13%', '0.43%', '0.16%', '0.06%', '0.02%', '0.01%']
invccdfs = ['1.000', '1.522', '2.871', '6.132', '14.19', '34.73', '88.56', '233.1', '628.8', '1731', '4846', '1.375万', '3.951万', '11.47万', '33.59万', '99.13万', '294.7万', '881.2万', '2650万', '8011万', '2.433億', '7.417億', '22.70億', '69.73億', '214.8億', '664.0億', '2058億', '6393億', '1.991兆', '6.215兆', '19.44兆', '60.92兆', '191.3兆', '601.6兆', '1895兆', '5981兆', '1.890京', '5.980京', '18.95京', '60.11京']
lvs = ['0.0', '0.6', '1.5', '2.6', '3.8', '5.1', '6.5', '7.9', '9.3', '11', '12', '14', '15', '17', '18', '20', '21', '23', '25', '26', '28', '29', '31', '33', '34', '36', '38', '39', '41', '42', '44', '46', '47', '49', '51', '52', '54', '56', '57', '59', '61', '62', '64', '66', '67', '69', '71', '72', '74', '76', '77', '79', '81', '83', '84', '86', '88', '89', '91', '93', '94', '96', '98', '99']
def telesa(n: int):
assert n >= 0, f'expect non-negative integer, got {n}'
return '上位%s デレ度=%s 逆デレ度=%s 相当コイン数=%s'%tuple(
dft if n >= len(arr) else arr[n]
for arr, dft in [
(cdfs, '100.00%'),
(ccdfs, '0.00%'),
(invccdfs, '100京+'),
(lvs, '100+'),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment