2024-04-14から1日間の記事一覧
ABC212 A-Alloy 問題はこちら 【Pythonでの解法】 まず解答例を下に示します。 A,B = map(int,input().split()) result = ["Gold", "Silver", "Alloy"] ans = "" if A > 0 and B == 0: ans = result[0] elif A == 0 and B > 0: ans = result[1] else: ans = …
ABC212 A-Alloy 問題はこちら 【Pythonでの解法】 まず解答例を下に示します。 A,B = map(int,input().split()) result = ["Gold", "Silver", "Alloy"] ans = "" if A > 0 and B == 0: ans = result[0] elif A == 0 and B > 0: ans = result[1] else: ans = …