摘要: unique()是c++里面的一个去重函数,包含在<iostream>中。 该函数将重复的元素移至容器的末尾,返回的为前面的无重复项的尾地址。 由于返回的是地址,所以经常需要转换为数值使用。 比如: 返回的ans值为5,,前5项为1 2 3 4 5。 阅读全文
posted @ 2017-07-25 20:44 Kiven#5197 阅读(302) 评论(0) 推荐(0) 编辑
摘要: unique()是c++里面的一个去重函数,包含在<iostream>中。 该函数将重复的元素移至容器的末尾,返回的为前面的无重复项的尾地址。 由于返回的是地址,所以经常需要转换为数值使用。 比如: 返回的ans值为5,,前5项为1 2 3 4 5。 阅读全文
posted @ 2017-07-25 20:44 Kiven#5197 阅读(235) 评论(0) 推荐(0) 编辑
摘要: C. Jury Marks time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Polycarp watched TV-show w 阅读全文
posted @ 2017-07-25 20:35 Kiven#5197 阅读(275) 评论(0) 推荐(0) 编辑
摘要: B. Petya and Exam time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output It's hard times now. T 阅读全文
posted @ 2017-07-25 11:15 Kiven#5197 阅读(412) 评论(0) 推荐(0) 编辑