結果
| 問題 |
No.668 6.0*10^23
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-04-12 18:26:04 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 253 bytes |
| コンパイル時間 | 198 ms |
| コンパイル使用メモリ | 6,812 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-30 05:50:04 |
| 合計ジャッジ時間 | 1,572 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 50 |
ソースコード
print((function (s)
local a,b,c = tonumber(s:sub(1,1)),tonumber(s:sub(2,2))+(4<tonumber(s:sub(3,3)) and 1 or 0),#s-1
if b == 10 then a,b = a+1,0 end
if a == 10 then a,c = 1,c+1 end
return string.format("%d.%d*10^%d",a,b,c)
end)(io.stdin:read("*l")))
nobigomu