2023-05-01から1ヶ月間の記事一覧

ABC301 python Atcoderの記録

問題はこちら 3完 A~C ##################### A N= int(input()) S = input() count_A = 0 count_T = 0 ans_before = "" for s in S[0:N-1]: if s == "A": count_A += 1 if s == "T": count_T += 1 # if count_A > count_T: ans_before = "A" if count_A < c…

ABC300 python Atcoderの記録

問題はこちら 3完 A~C A~C ##################### A N, A, B = list(map(int, input().split())) C = list(map(int, input().split())) for i in range(N): if A+B == C[i]: print(i+1) break ##################### B H, W = list(map(int, input().split()…