![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
字符串
文章平均质量分 90
陶鸿杰
这个作者很懒,什么都没留下…
展开
-
Codeforces1092C. Prefixes and Suffixes——————思维,字符串
C. Prefixes and SuffixesIvan wants to play a game with you. He picked some string s of length n consisting only of lowercase Latin letters.You don’t know this string. Ivan has informed you about all...原创 2018-12-21 16:42:20 · 1196 阅读 · 1 评论 -
表达式求值——————Python大法好!
朴素的表达式求值算法加减乘除,用py来写的用双栈来实现就可以我后续会进行C/C++代码的补充;先来看一下python的写法第一种直接模拟双栈,python的写法比较简单一下def compare(op1, op2): """ 比较两个运算符的优先级,乘除运算优先级比加减高 op1优先级比op2高返回True,否则返回False """ retu...原创 2019-01-03 15:10:40 · 9185 阅读 · 0 评论 -
Codeforces 1097C. Yuhao and a Parenthesis——————思维
C. Yuhao and a ParenthesisOne day, Yuhao came across a problem about checking if some bracket sequences are correct bracket sequences.A bracket sequence is any non-empty sequence of opening and clos...原创 2019-01-06 21:34:21 · 726 阅读 · 0 评论 -
牛客练习赛51 A-E
B 子串查询主要是学习了一下string 中 find 的用法#include<bits/stdc++.h>using namespace std;typedef long long ll;const int MAXN = 1e5+7;int main() { int n,q; string s; cin>>n...原创 2019-09-06 23:48:50 · 233 阅读 · 0 评论