ChatCrawlersearch across public Telegram Open the app
W

Web Development Bootcamp

сообщение · 2023-03-18 02:13 UTC
.
After successful placement process in AITR, now it is time for photoshoot of placed students along with the faculties of the college. Tejas and Tarun are placement coordinators. They were given a task to arrange students and faculties for photoshoots in different rows. The number of columns in each row will be same and number of students and faculties are known. They have to place students in such a way so that students having short heights will stand in the front rows and those having more height stand in back rows. In a row student will be in order from left to right. Faculties sit from the middle of the first row. Help them to arrange students in such a way. Input Format First line has to inputs N, F and C Where N is number of students, F is number of faculties and C is number of column in each row Next line contains N elements where Ai represents the height of the students in cm Constraints 1 ≤ N ≤ 103 1 ≤ C ≤ N 1 ≤ F ≤ C C-F will be always a even positive integer. height of a students is a positive integer between 122 - 184 Output Format Output in form of matrix, the places of students and faculties(denoted by F) according to the rule mentioned above with upmost row as the front row. Sample Input 0 8 2 4 122 124 136 138 140 152 158 168 Sample Output 0 122 F F 124 136 138 140 152 158 168

All messages on 18 March 2023 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of 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 · What we do not do · Remove a page · Catalog