結果
| 問題 | No.552 十分簡単な星1の問題 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-12 13:17:17 |
| 言語 | Elixir (1.19.5) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 54 bytes |
| 記録 | |
| コンパイル時間 | 1,371 ms |
| コンパイル使用メモリ | 69,848 KB |
| 最終ジャッジ日時 | 2026-05-10 04:47:34 |
| 合計ジャッジ時間 | 2,044 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
== Compilation error in file Main.exs ==
** (FunctionClauseError) no function clause matching in Integer.parse/2
The following arguments were given to Integer.parse/2:
# 1
:eof
# 2
10
Attempted function clauses (showing 2 out of 2):
def parse(+_binary+, +base+) when -not (is_integer(base) and (base >= 2 and base <= 36))-
def parse(+binary+, +base+) when -is_binary(binary)-
(elixir 1.19.5) lib/integer.ex:282: Integer.parse/2
Main.exs:1: (file)
(elixir 1.19.5) lib/kernel/parallel_compiler.ex:529: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/8
ソースコード
IO.puts 10 * (IO.gets("") |> Integer.parse |> elem(0))