<jupyter_start><jupyter_text>2021년 9월 14일 화요일 BaekJoon - 힘 겨루기 (Python) 문제 : https://www.acmicpc.net/problem/17251 블로그 : https://somjang.tistory.com/entry/BaekJoon-17251%EB%B2%88-%ED%9E%98-%EA%B2%A8%EB%A3%A8%EA%B8%B0-Python  Solution<jupyter_code>def fight_for_strength(players):
    players = list(map(int, players.split()))
    
    max_st, start, end = 0, 0, 0
    
    for idx, player in enumerate(players):
        if max_st < player:
            max_st = player
            start = idx
            end = idx
        elif max_st == player:
            end = idx
            
    if start > len(players) - end - 1:
        result = "B"
    elif start < len(players) - end - 1:
        result = "R"
    else:
        result = "X"
        
    return result


if __name__ == "__main__":
    _ = input()
    players = input()
    print(fight_for_strength(players))<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.12849162011173185, 'fraction_numerical': 0.03798882681564246, 'mean_word_length': 2.234657039711191, 'pattern_counts': {'":': 1, '<': 7, '<?xml version=': 0, '>': 6, 'https://': 2, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '453116', 'license': 'MIT', 'n_tokens_mistral': 372, 'n_tokens_neox': 356, 'n_words': 68, 'path': 'DAY 401 ~ 500/DAY483_[BaekJoon] 힘 겨루기 (Python).ipynb', 'repo_name': 'SOMJANG/CODINGTEST_PRACTICE', 'size': '895'}