結果
問題 | No.1026 OGAWA's New Keyboard |
ユーザー | gemmaro |
提出日時 | 2020-04-21 09:34:47 |
言語 | Elixir (1.16.2) |
結果 |
TLE
|
実行時間 | - |
コード長 | 440 bytes |
コンパイル時間 | 1,066 ms |
コンパイル使用メモリ | 55,152 KB |
実行使用メモリ | 117,472 KB |
最終ジャッジ日時 | 2023-08-30 00:34:48 |
合計ジャッジ時間 | 7,768 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 628 ms
49,236 KB |
testcase_01 | AC | 631 ms
50,428 KB |
testcase_02 | AC | 636 ms
49,340 KB |
testcase_03 | AC | 625 ms
49,636 KB |
testcase_04 | TLE | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
ソースコード
defmodule Main do def main do 1..(IO.read(:line) |> String.trim() |> String.to_integer()) |> Enum.map(fn _ -> IO.read(:line) |> String.trim() |> String.split() end) |> solve_rec([]) |> IO.puts() end def solve_rec([], r) do r end def solve_rec([[t, s] | l], r) do case t do "0" -> solve_rec(l, "#{r}#{s}") "1" -> solve_rec(l, "#{s}#{r}") end end end