結果
| 問題 |
No.571 3人兄弟(その2)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-21 12:07:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 31 ms / 2,000 ms |
| コード長 | 567 bytes |
| コンパイル時間 | 161 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-25 09:21:33 |
| 合計ジャッジ時間 | 1,412 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 |
ソースコード
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])