English
Open in Telegram

Message a,b = map(int, input().split())

5 November 2023
P
Python Online o'quv markazi ma'lumot guruhi
Photo
click to show
Photo
click to show
a,b = map(int, input().split()) array = list(map(int, input().split())) subarrays = [] for i in range(len(array) + 1): for j in range(i + 1, len(array) + 1): subarray = array[i:j] subarrays.append(sum(subarray)) subarrays.sort() print(subarrays[b-1]) #E #Python_Online

Nearby in the feed

PPython Online o'quv markazi ma'lumot guruhiViloyat bosqichi uchun🔥 O'quvchingiz informatika faniing tuman bosqichidan 1-, 2- va 3- o'rinlar olgan bo'lsa va viloyat bosqichiga tayyorlayotgan bo'lsangiz bi
this message
PPython Online o'quv markazi ma'lumot guruhia = int(input()) list = list(map(int, input().split())) answers = [] for i in list: son = 0 for j in list: if i<j: son+=j-i answers.append(son) print(*answers, PPython Online o'quv markazi ma'lumot guruhi#for_informatic Endi siz uchun ham buni imkoni bor ❓O'quvchingiz informatika fanidan tuman va viloyat bosqichlariga chiqa olmadimi? ❓Siz dasturlashdan yetarlich
PPython Online o'quv markazi ma'lumot guruhiPython Online o'quv markazi ma'lumot guruhi@pythonCourseInfo · group · Tech
2 363members1writing in 30 days
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