結果
| 問題 | No.571 3人兄弟(その2) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-12-21 12:07:37 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 95 ms / 2,000 ms |
| コード長 | 567 bytes |
| 記録 | |
| コンパイル時間 | 316 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 15,360 KB |
| 最終ジャッジ日時 | 2026-04-12 13:51:10 |
| 合計ジャッジ時間 | 2,937 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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])