10 2019 档案

摘要:2017CCPC杭州题目PDF Problem A. Super-palindrome 题解: 给你一个字符串,每一步可以将一个字符替换为另一个字符,问你最少多少步可以使得,该字符串任意奇数子串为回文串,偶数子串为回文串。 满足上面条件一定是ababab这种形式,所以我们只要找到数量最多的两种字符用 阅读全文
posted @ 2019-10-30 12:06 StarHai 阅读(823) 评论(0) 推荐(0) 编辑
摘要:A:水题,先排序,有相连的输出2,否则输出1. #include<bits/stdc++.h> using namespace std; #define pii pair<int,int> #define mkp make_pair #define pb push_back #define fi f 阅读全文
posted @ 2019-10-23 23:59 StarHai 阅读(417) 评论(0) 推荐(0) 编辑
摘要:链接:https://ac.nowcoder.com/acm/contest/1099/C来源:牛客网 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32768K,其他语言65536K Special Judge, 64bit IO Format: %lld 时间限制:C/C++ 阅读全文
posted @ 2019-10-09 21:18 StarHai 阅读(340) 评论(0) 推荐(0) 编辑
摘要:It's known to all that ZYB is godlike, so obviously he has a large number of titles, such as jskingjsking, bijingzybbijingzyb and nbazybnbazyb. ZYB li 阅读全文
posted @ 2019-10-09 15:36 StarHai 阅读(585) 评论(0) 推荐(0) 编辑
摘要:Alice and Bob play a game. Initially they have a string s1,s2,…,sns1,s2,…,sn, consisting of only characters . and X. They take alternating turns, and 阅读全文
posted @ 2019-10-08 15:01 StarHai 阅读(362) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示