Scale byte values by jamesaxl

n=0\x0d
while 1:r=input();n+=1;exec('if n<5:a=r\nelif n==1031:a="%.2f MB"%(r/1024.0**2+0.01)\nelse:a="%.2f MB"%(r/1024.0**2)if r/1024**2 else"%.2f KB"%(r/1024.0)');print a

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page