摘要: 解析 字符串操作,本题解采取了多关键词排序 Code #include <bits/stdc++.h> using namespace std; int f, n; struct node { int y, r; string s; }a[100005]; int cmp (node x, node 阅读全文
posted @ 2021-03-26 20:25 unknown_future 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 解析 字符串的操作,可以用函数解决这个问题 s 2. f i n d ( s 1. s u b s t r ( i , j ) ) s2.find~(s1.substr~(i,~j)) s2.find (s1.substr (i, j)) 在s2中查找s1中 i i i到 j j j第一次出现的位置 阅读全文
posted @ 2021-03-26 18:19 unknown_future 阅读(105) 评论(0) 推荐(0) 编辑