摘要:
Problem - E - Codeforces 题意是现在有n个0,给你m段序列,然后给你q次操作,每次操作给一个x,把第x个0变成1,问你最少几次操作能出现一段序列里的1的数量大于0的数量,如果不存在,输出-1 对于操作数是一个递增序列。如果第k次操作后正好可行,那么就不用管k+1及以后了。 所 阅读全文
摘要:
题目描述 There are N people standing on the x-axis. Let the coordinate of Person i be xi. For every i, xi is an integer between 0 and 109 (inclusive). It 阅读全文