摘要: 2020-10-22 P4302 这道是will讲的区间dp例题,我跟着思路写了一遍,发现只得了60分 这种dp题我还没有想到找bug的方法,所以没有头绪 直接发在论坛上看有没有大佬帮我 (狗头 #include<bits/stdc++.h> #define ll long long #define 阅读全文
posted @ 2020-10-22 19:50 juuich 阅读(29) 评论(0) 推荐(0) 编辑
摘要: 由一道二叉树题引入:UVA548 https://www.luogu.com.cn/problem/UVA548 这道题其实别的都不难 深搜建树 再深搜一次找最小 放一下之前代码 bool put_in(char r[]) { if(cin>>e) { int cnt=1; while(cin>>r 阅读全文
posted @ 2020-03-16 22:13 juuich 阅读(54) 评论(0) 推荐(0) 编辑
摘要: STL queue UVA540 AC码 #include<queue> #include<map> #include<iostream> #include<cstring> #include<string> #include<set> using namespace std; int n,m,r, 阅读全文
posted @ 2020-03-07 13:17 juuich 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 一道综合set,map,stack的STL题目,非常有意思!! UVA12096 AC码 #include<iostream> #include<map> #include<vector> #include<algorithm> #include<cstring> #include<set> #in 阅读全文
posted @ 2020-03-01 22:47 juuich 阅读(165) 评论(0) 推荐(0) 编辑
摘要: STL map UVA156 AC码 #include<iostream> #include<vector> #include<cctype> #include<cstring> #include<map> #include<algorithm> using namespace std; strin 阅读全文
posted @ 2020-03-01 11:56 juuich 阅读(177) 评论(0) 推荐(0) 编辑
摘要: STL set UVA10815 AC码 #include<iostream> #include<string> #include<set> #include<sstream> using namespace std; string s,buf; set<string> dict; //string 阅读全文
posted @ 2020-02-28 23:32 juuich 阅读(212) 评论(0) 推荐(0) 编辑
摘要: STL vector UVA101 AC码 #include<iostream> #include<vector> #include<cstring> using namespace std; const int maxx=30; int n; string s1,s2; vector <int> 阅读全文
posted @ 2020-02-28 21:16 juuich 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 1.a->b意味着(*a).b。 2.对比两个函数 bool cmp (stu a,stu b) { if(a.sum==b.sum) { if(a.c==b.c) { return a.num>b.num; } else return a.c>b.c; } else return a.sum >b 阅读全文
posted @ 2020-02-25 23:12 juuich 阅读(128) 评论(0) 推荐(0) 编辑