ただのメモ

他の人に見せても良い方のメモ

2022-01-12から1日間の記事一覧

Competitive Programing Typical 90 Problem day7

Day 7. This problem is easy game, because i grasp the meaning of binary search. Code is below. N = int(input()) A = list(map(int,input().split())) Q = int(input()) #input zone A.sort() def Complaint(b): l = 0 r = N while r-l > 1: mid = (r+…