結果

問題 No.169 何分かかるの!?
ユーザー gemmarogemmaro
提出日時 2020-04-08 12:01:45
言語 Elixir
(1.16.2)
結果
AC  
実行時間 611 ms / 1,000 ms
コード長 276 bytes
コンパイル時間 1,081 ms
コンパイル使用メモリ 54,780 KB
実行使用メモリ 51,064 KB
最終ジャッジ日時 2023-08-30 00:01:54
合計ジャッジ時間 17,446 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 603 ms
49,860 KB
testcase_01 AC 608 ms
49,172 KB
testcase_02 AC 605 ms
49,936 KB
testcase_03 AC 603 ms
50,128 KB
testcase_04 AC 603 ms
49,268 KB
testcase_05 AC 602 ms
49,120 KB
testcase_06 AC 604 ms
49,312 KB
testcase_07 AC 596 ms
49,336 KB
testcase_08 AC 595 ms
49,360 KB
testcase_09 AC 596 ms
49,924 KB
testcase_10 AC 605 ms
49,408 KB
testcase_11 AC 601 ms
49,496 KB
testcase_12 AC 607 ms
49,344 KB
testcase_13 AC 606 ms
49,412 KB
testcase_14 AC 602 ms
49,308 KB
testcase_15 AC 597 ms
49,808 KB
testcase_16 AC 601 ms
50,620 KB
testcase_17 AC 608 ms
49,376 KB
testcase_18 AC 611 ms
51,064 KB
testcase_19 AC 609 ms
49,856 KB
testcase_20 AC 604 ms
49,348 KB
testcase_21 AC 610 ms
49,288 KB
testcase_22 AC 606 ms
49,448 KB
testcase_23 AC 602 ms
49,816 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    k =
      IO.gets("")
      |> String.trim()
      |> String.to_integer()

    s =
      IO.gets("")
      |> String.trim()
      |> String.to_integer()

    (100 * s / (100 - k))
    |> Float.floor()
    |> trunc
    |> IO.puts()
  end
end
0