結果
問題 |
No.285 消費税2
|
ユーザー |
|
提出日時 | 2025-09-19 02:11:14 |
言語 | Standard ML (MLton 20210117) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 522 bytes |
コンパイル時間 | 3,387 ms |
コンパイル使用メモリ | 691,960 KB |
実行使用メモリ | 7,716 KB |
最終ジャッジ日時 | 2025-09-19 02:11:19 |
合計ジャッジ時間 | 4,656 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 26 |
ソースコード
fun readLargeInt () = valOf (TextIO.scanStream (LargeInt.scan StringCvt.DEC) TextIO.stdIn) fun findAns s = let val cs = String.explode s val len = List.length cs val ansString = (List.take (cs, len - 2)) @ [#"."] @ (List.drop (cs, len - 2)) val ans = String.implode ansString in ans end val () = let val d = readLargeInt () val tempAns = LargeInt.toString (d * 108) val ans = findAns tempAns in print (ans ^ "\n") end