摘要: 题目链接: https://cn.vjudge.net/problem/25167/origin 思路: 这是一道水题,但是一开始思路有点问题。。 1000的数据大小,直接暴搜左开始第一个与i不等的下标,再从右开始搜第一与i不等的下标 然后用swap,或者reverse翻转一下,再进行对比就行。 有 阅读全文
posted @ 2019-01-20 19:27 mpeter 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/problem/1576783/origin 输入输出: ExamplesinputCopy42 44 13 1outputCopy1inputCopy31 21 3outputCopy-1inputCopy107 18 48 104 76 5 阅读全文
posted @ 2019-01-20 18:55 mpeter 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 题目链接: http://codeforces.com/contest/1089/problem/G Example input Copy 3 2 0 1 0 0 0 0 0 100000000 1 0 0 0 1 0 1 1 1 0 0 0 0 0 0 output Copy 8 23333333 阅读全文
posted @ 2019-01-20 17:02 mpeter 阅读(219) 评论(0) 推荐(0) 编辑