結果
| 問題 |
No.304 鍵(1)
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-07-26 01:06:12 |
| 言語 | Elixir (1.18.1) |
| 結果 |
AC
|
| 実行時間 | 682 ms / 2,000 ms |
| コード長 | 379 bytes |
| コンパイル時間 | 3,807 ms |
| コンパイル使用メモリ | 60,856 KB |
| 実行使用メモリ | 71,020 KB |
| 平均クエリ数 | 309.17 |
| 最終ジャッジ日時 | 2024-07-26 01:06:22 |
| 合計ジャッジ時間 | 9,034 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 |
ソースコード
defmodule Main do
def main do
solve(0)
end
def solve(x) do
:io.format("~3..0b~n", [x])
res = input()
if res == "locked", do: solve(x+1)
end
def input, do: IO.read(:line) |> String.trim
def ii, do: input() |> String.to_integer
def li, do: input() |> String.split |> Enum.map(&String.to_integer/1)
def yn(b), do: (if b, do: "Yes", else: "No")
end
norioc