結果

問題 No.1070 Missing a space
ユーザー penqenpenqen
提出日時 2020-12-16 13:27:42
言語 Elixir
(1.16.2)
結果
AC  
実行時間 623 ms / 1,000 ms
コード長 197 bytes
コンパイル時間 1,084 ms
コンパイル使用メモリ 55,208 KB
実行使用メモリ 50,940 KB
最終ジャッジ日時 2023-08-30 01:10:38
合計ジャッジ時間 8,821 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 607 ms
49,152 KB
testcase_01 AC 612 ms
50,940 KB
testcase_02 AC 605 ms
49,276 KB
testcase_03 AC 606 ms
49,804 KB
testcase_04 AC 623 ms
50,148 KB
testcase_05 AC 612 ms
49,768 KB
testcase_06 AC 604 ms
49,224 KB
testcase_07 AC 599 ms
49,228 KB
testcase_08 AC 608 ms
49,992 KB
testcase_09 AC 602 ms
49,272 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

defmodule Main do
  
  def main do
    IO.read(:line) |> String.trim() |> solve() |> IO.puts()
  end

  def solve(n) do
    n |> String.replace("0", "") |> String.length() |> Kernel.-(1)
  end

end
0