結果
| 問題 |
No.2322 MMA文字列
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2024-11-12 03:54:42 |
| 言語 | Elixir (1.18.1) |
| 結果 |
AC
|
| 実行時間 | 636 ms / 2,000 ms |
| コード長 | 399 bytes |
| コンパイル時間 | 2,378 ms |
| コンパイル使用メモリ | 61,596 KB |
| 実行使用メモリ | 54,544 KB |
| 最終ジャッジ日時 | 2024-11-12 03:55:00 |
| 合計ジャッジ時間 | 17,439 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
defmodule Main do
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: IO.puts (if b, do: "Yes", else: "No")
def is_mma(a, a, b), do: a != b
def is_mma(_, _, _), do: false
def main do
[a, b, c] = input() |> String.graphemes()
yn(is_mma(a, b, c))
end
end
norioc