{"title":"Assimilation","authors":"Simone Gori","doi":"10.7551/mitpress/12271.003.0011","DOIUrl":null,"url":null,"abstract":"The first line of input contains the number of test cases z (1 ¬ z ¬ 30). The test cases follow, each one in the following format: The first line of every test case contains two integers n and k (1 ¬ n ¬ 200 000; 1 ¬ k ¬ 109) – the number of planets, and the size of Aliens’ initial fleet. The second line contains n integers a1, . . . , an (1 ¬ ai ¬ 109) – the populations of the respective planets. The sum of n values over all test cases does not exceed 500 000.","PeriodicalId":377018,"journal":{"name":"Encyclopedia of Color Science and Technology","volume":"36 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"1900-01-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"61","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Encyclopedia of Color Science and Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.7551/mitpress/12271.003.0011","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 61
Abstract
The first line of input contains the number of test cases z (1 ¬ z ¬ 30). The test cases follow, each one in the following format: The first line of every test case contains two integers n and k (1 ¬ n ¬ 200 000; 1 ¬ k ¬ 109) – the number of planets, and the size of Aliens’ initial fleet. The second line contains n integers a1, . . . , an (1 ¬ ai ¬ 109) – the populations of the respective planets. The sum of n values over all test cases does not exceed 500 000.