結果

問題 No.552 十分簡単な星1の問題
コンテスト
ユーザー 👑 yumechi
提出日時 2017-08-12 13:17:17
言語 Elixir
(1.20.3)
コンパイル:
elixirc _filename_
実行:
elixir -e Main.main
結果
CE  
(最新)
AC  
(最初)
実行時間 -
コード長 54 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,124 ms
コンパイル使用メモリ 75,572 KB
最終ジャッジ日時 2026-09-22 17:06:58
合計ジャッジ時間 1,947 ms
ジャッジサーバーID
(参考情報)
judge5_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、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.20.4) lib/integer.ex:354: Integer.parse/2
    Main.exs:1: (file)
    (elixir 1.20.4) lib/kernel/parallel_compiler.ex:548: anonymous fn/5 in Kernel.ParallelCompiler.spawn_workers/8

ソースコード

diff #
raw source code

IO.puts 10 * (IO.gets("") |> Integer.parse |> elem(0))
0