結果
問題 | No.668 6.0*10^23 |
ユーザー |
👑 |
提出日時 | 2019-04-27 23:00:41 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 286 bytes |
コンパイル時間 | 59 ms |
コンパイル使用メモリ | 5,248 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 23:18:45 |
合計ジャッジ時間 | 1,596 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 50 |
ソースコード
ior = io.readlocal str = ior()local top = tonumber(str:sub(1, 3))if(995 <= top) thenprint(string.format("1.0*10^%d", #str))elsetop = math.floor((top + 5) / 10)local top1, top2 = math.floor(top / 10), top % 10print(string.format("%d.%d*10^%d", top1, top2, #str - 1))end