結果

問題 No.571 3人兄弟(その2)
ユーザー utsumidaisukeutsumidaisuke
提出日時 2018-12-21 12:07:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 29 ms / 2,000 ms
コード長 567 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 12,024 KB
実行使用メモリ 10,176 KB
最終ジャッジ日時 2023-10-26 01:20:30
合計ジャッジ時間 1,701 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
10,176 KB
testcase_01 AC 28 ms
10,176 KB
testcase_02 AC 28 ms
10,176 KB
testcase_03 AC 28 ms
10,176 KB
testcase_04 AC 28 ms
10,176 KB
testcase_05 AC 28 ms
10,176 KB
testcase_06 AC 27 ms
10,176 KB
testcase_07 AC 29 ms
10,176 KB
testcase_08 AC 28 ms
10,176 KB
testcase_09 AC 27 ms
10,176 KB
testcase_10 AC 29 ms
10,176 KB
testcase_11 AC 28 ms
10,176 KB
testcase_12 AC 28 ms
10,176 KB
testcase_13 AC 28 ms
10,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = list(map(int,input().split()))
b = list(map(int,input().split()))
c = list(map(int,input().split()))

dct = {'A':a, 'B':b, 'C':c}


hls = list(set([a[0], b[0], c[0]]))
wls = list(set([a[1], b[1], c[1]]))
wls.sort()
hls.sort()
hls.reverse()

for i in hls:
    key = [j for j, k in dct.items() if k[0] == i]
    if len(key) == 1:
        print(key[0])
    elif len(key) >= 1:
        for l in wls:
            key = [j for j,k in dct.items() if k[0] == i and k[1] == l ]
            if key == []:
                pass
            else:
                print(key[0])
0