摘要: 题目地址:https://www.nowcoder.com/acm/contest/76/F 搜索 利用队列有序性质直接往后搜索即可 搜过的直接删除 通俗易懂 #include <iostream> #include <queue> using namespace std; int main() { 阅读全文
posted @ 2018-03-11 14:29 张浦 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 模拟题,数据量较小,直接暴力枚举 #include <iostream> using namespace std; int main(){ int tlen,tans=0,ansf=0; cin>>tlen; string text,mode,ans; cin>>text; while(tlen<t 阅读全文
posted @ 2018-03-11 10:40 张浦 阅读(69) 评论(0) 推荐(0) 编辑