@anonymous/

ShockedShockedMatrix

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.3260084940007164","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aD1sYW1iZGEgdix1PTA6djwxZTNhbmQoIiUuM0clc0IiJSh2LCJLaU1pR2kiW3UtMjp1XSkpb3IgaCh2LzEwMjQsdSsyKQoKbGlzdChtYXAobGFtYmRhIHY6IHByaW50KCJ7fSAtLT4ge30iLmZvcm1hdCh2LCBoKHYpKSksICgwLCAxLCA0MiwgOTk5LCAxMDAwLCAxMjQsIDIwMTgsIDEwMDg2LCAxMDAwMTAsIDQ1Njc4OSwgMjAwODA3MDUsIDk1NDQzNzE3NywgMTA4NDU4NzcwMSwgMTIwNzk1OTU1MSwgMjE0NzQ4MzY0NykpKQ=="},"asBuffer":null},"loaded":true}}
1
2
3
h=lambda v,u=0:v<1e3and("%.3G%sB"%(v,"KiMiGi"[u-2:u]))or h(v/1024,u+2)

list(map(lambda v: print("{} --> {}".format(v, h(v))), (0, 1, 42, 999, 1000, 124, 2018, 10086, 100010, 456789, 20080705, 954437177, 1084587701, 1207959551, 2147483647)))