日期: 2020/05/16
链接: https://ac.nowcoder.com/acm/contest/5208#question
做题统计:王瑞琦: 冯宇扬: 常程:2
solved by, upsolved by .
题意:
题解:
solved by 常程, upsolved by .
题意:N($2\le N\le10^9$)头牛站成一排照相。有K($1\le K\le1000$)对牛不想被照在同一张相片里。求最少照的次数。
题解:这道题在中途分界并没有能减少照的次数————不冲突的分配给那个区间都无所谓,冲突的必须分区间,因此直接贪心,发现矛盾就换区间。
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by 常程, upsolved by .
题意:N($1\le N\le5\times10^4$)只牛排成一排,每只牛有一个id,id相同、距离不到K($1\le K<N$)的两只牛称为“crowded”。求最大的“crowded”的牛的id。
题解:大水题。直接记录每一个id上一次出现的位置就好了。
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解:
solved by, upsolved by .
题意:
题解: