提出 #57777932
ソースコード 拡げる
"""
<方針>
- 入力を `str` で受け取るように注意する.
- それぞれ, `A`, `B`, `C` が次男になる必要条件は,自分が関わっている大小関係だけを見ればよい.それぞれ, `2` パターンあるのを注意
"""
# 入力(str)
x, y, z = map(str, input().split())
# Aが次男
if (
(x == "<" and y == ">") or
(x == ">" and y == "<")
):
print("A")
# Bが次男
if (
(x == "<" and z == "<") or
(x == ">" and z == ">")
):
print("B")
# Cが次男
if (
(y == "<" and z == ">") or
(y == ">" and z == "<")
):
print("C")
提出情報
| 提出日時 | |
|---|---|
| 問題 | A - Jiro |
| ユーザ | mattsunkun |
| 言語 | Python (PyPy 3.10-v7.3.12) |
| 得点 | 150 |
| コード長 | 611 Byte |
| 結果 | AC |
| 実行時間 | 56 ms |
| メモリ | 76600 KiB |
ジャッジ結果
| セット名 | Sample | All | ||||
|---|---|---|---|---|---|---|
| 得点 / 配点 | 0 / 0 | 150 / 150 | ||||
| 結果 |
|
|
| セット名 | テストケース |
|---|---|
| Sample | 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_01.txt, 00_sample_02.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt |
| ケース名 | 結果 | 実行時間 | メモリ |
|---|---|---|---|
| 00_sample_01.txt | AC | 55 ms | 76188 KiB |
| 00_sample_02.txt | AC | 56 ms | 76444 KiB |
| 01_test_01.txt | AC | 55 ms | 76572 KiB |
| 01_test_02.txt | AC | 55 ms | 76484 KiB |
| 01_test_03.txt | AC | 55 ms | 76600 KiB |
| 01_test_04.txt | AC | 55 ms | 76312 KiB |