上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 29 下一页
摘要: Hopscotch Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 4385 Accepted: 2924 Description The cows play the child's game of hopscotch in a 阅读全文
posted @ 2017-07-27 11:08 Kiven#5197 阅读(250) 评论(0) 推荐(0) 编辑
摘要: Backward Digit Sums Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 7634 Accepted: 4398 Description FJ and his cows enjoy playing a mental 阅读全文
posted @ 2017-07-27 10:33 Kiven#5197 阅读(309) 评论(0) 推荐(0) 编辑
摘要: next_permutation()可以按字典序生成所给区间的全排列。 在STL中,除了next_permutation()外,还有一个函数prev_permutation(),两者都是用来计算排列组合的函数。前者是求出下一个排列组合,而后者是求出上一个排列组合。所谓“下一个”和“上一个”,书中举了 阅读全文
posted @ 2017-07-27 10:04 Kiven#5197 阅读(449) 评论(0) 推荐(1) 编辑
摘要: Smallest Difference Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12158 Accepted: 3306 Description Given a number of distinct decimal dig 阅读全文
posted @ 2017-07-27 09:55 Kiven#5197 阅读(438) 评论(0) 推荐(0) 编辑
摘要: Red and Black Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 36371 Accepted: 19731 Description There is a rectangular room, covered with s 阅读全文
posted @ 2017-07-26 20:25 Kiven#5197 阅读(222) 评论(0) 推荐(0) 编辑
摘要: Lake Counting Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 36208 Accepted: 17982 Description Due to recent rains, water has pooled in va 阅读全文
posted @ 2017-07-26 16:23 Kiven#5197 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Ants Time Limit: 1000MS Memory Limit: 30000K Total Submissions: 19297 Accepted: 8059 Description An army of ants walk on a horizontal pole of length l 阅读全文
posted @ 2017-07-26 15:00 Kiven#5197 阅读(209) 评论(0) 推荐(0) 编辑
摘要: C. String Reconstruction time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Ivan had string 阅读全文
posted @ 2017-07-26 11:37 Kiven#5197 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: B. Black Square time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Polycarp has a checkered 阅读全文
posted @ 2017-07-26 10:17 Kiven#5197 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: unique()是c++里面的一个去重函数,包含在<iostream>中。 该函数将重复的元素移至容器的末尾,返回的为前面的无重复项的尾地址。 由于返回的是地址,所以经常需要转换为数值使用。 比如: 返回的ans值为5,,前5项为1 2 3 4 5。 阅读全文
posted @ 2017-07-25 20:44 Kiven#5197 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 29 下一页