摘要: 2120: 数颜色 Description 墨墨购买了一套N支彩色画笔(其中有些颜色可能相同),摆成一排,你需要回答墨墨的提问。墨墨会像你发布如下指令: 1、 Q L R代表询问你从第L支画笔到第R支画笔中共有几种不同颜色的画笔。 2、 R P Col 把第P支画笔替换为颜色Col。为了满足墨墨的要 阅读全文
posted @ 2016-10-21 15:54 Blackops 阅读(328) 评论(0) 推荐(0) 编辑
摘要: D. Lakes in Berland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output D. Lakes in Berland 阅读全文
posted @ 2016-10-21 08:51 Blackops 阅读(294) 评论(0) 推荐(0) 编辑