結果

問題 No.666 1000000007で割るだけ
ユーザー gemmarogemmaro
提出日時 2020-04-08 11:35:46
言語 Elixir
(1.16.2)
結果
AC  
実行時間 625 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 1,096 ms
コンパイル使用メモリ 54,712 KB
実行使用メモリ 49,980 KB
最終ジャッジ日時 2023-08-30 00:00:52
合計ジャッジ時間 17,792 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 614 ms
49,384 KB
testcase_01 AC 613 ms
49,512 KB
testcase_02 AC 612 ms
49,524 KB
testcase_03 AC 618 ms
49,404 KB
testcase_04 AC 625 ms
49,368 KB
testcase_05 AC 624 ms
49,188 KB
testcase_06 AC 617 ms
49,288 KB
testcase_07 AC 619 ms
49,888 KB
testcase_08 AC 618 ms
49,192 KB
testcase_09 AC 621 ms
49,276 KB
testcase_10 AC 614 ms
49,228 KB
testcase_11 AC 621 ms
49,748 KB
testcase_12 AC 620 ms
49,828 KB
testcase_13 AC 602 ms
49,980 KB
testcase_14 AC 611 ms
49,220 KB
testcase_15 AC 613 ms
49,880 KB
testcase_16 AC 622 ms
49,332 KB
testcase_17 AC 619 ms
49,220 KB
testcase_18 AC 614 ms
49,248 KB
testcase_19 AC 611 ms
49,888 KB
testcase_20 AC 613 ms
49,352 KB
testcase_21 AC 608 ms
49,328 KB
testcase_22 AC 600 ms
49,184 KB
testcase_23 AC 609 ms
49,220 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  def main do
    [a, b] =
      IO.gets("")
      |> String.trim()
      |> String.split()
      |> Enum.map(fn s -> String.to_integer(s) end)

    rem(a * b, 1_000_000_007)
    |> IO.puts()
  end
end
0