結果
問題 |
No.668 6.0*10^23
|
ユーザー |
|
提出日時 | 2018-03-24 10:57:18 |
言語 | Nim (2.2.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 265 bytes |
コンパイル時間 | 3,017 ms |
コンパイル使用メモリ | 80,912 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-30 05:29:21 |
合計ジャッジ時間 | 4,088 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 50 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 8) Warning: imported and not used: 'sequtils' [UnusedImport] /home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'os' [UnusedImport]
ソースコード
import sequtils, strutils, os var n = stdin.readLine res:float = n[0..1].parseFloat zeros = n.len - 1 echo zeros if ($n[2]).parseInt >= 5: res += 1.0 if res >= 100: zeros += 1 res = res / 10 echo ($res)[0], ".", ($res)[1], "*10^", zeros