English
Open in Telegram

Postimport math

30 July 2025
D
Deloitte | COGNIZANT | IBM | CAPGEMINI
import math def is_possible(K, houses, H): total_time = 0 for house in houses: total_time += math.ceil(house / K) return total_time <= H def find_min_K(n, H, houses): low = 1 high = max(houses) answer = high while low <= high: mid = (low + high) // 2 if is_possible(mid, houses, H): answer = mid high = mid - 1 else: low = mid + 1 return answer n, H = map(int, input().split()) houses = list(map(int, input().split())) print(find_min_K(n, H, houses)) q1 //quantiphi✅
1.3K ·

Nearby in the feed

DDeloitte | COGNIZANT | IBM | CAPGEMINIION all slots ✅✅ Contact : @MLCODER2DDeloitte | COGNIZANT | IBM | CAPGEMINICapgemini ✅✅ Contact: @MLCODER2
this message
DDeloitte | COGNIZANT | IBM | CAPGEMINIdef max_points(points): n = len(points) if n == 0: return 0 if n == 1: return points[0] dp = [0] * n dp[0] = points[0] dp[1] = max(points[0], points[1])DDeloitte | COGNIZANT | IBM | CAPGEMINIimport heapq from collections import defaultdict def solve(n, m, k, treasures, bridges, queries): graph = defaultdict(list) for u, v, w in bridges: graph[u - 1]
DDeloitte | COGNIZANT | IBM | CAPGEMINIDeloitte | COGNIZANT | IBM | CAPGEMINI@python_java_Coding · channel · Tech
7 178subscribers451average post reach
Venue feed Open in Telegram

An open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · Index limits · Remove a page · Catalog · Search · How we count