摘要: 两个全都由小写字母组成的字符串 s 和 t 判断 s 是不是包含 t 的全排列 #include <bits/stdc++.h> using namespace std; string s, t; int cnts[30], cntt[30]; bool check(string s1, strin 阅读全文
posted @ 2020-07-10 10:42 丧心病狂工科女 阅读(876) 评论(0) 推荐(0) 编辑
摘要: 把数组中所有的奇数放到偶数的左边不在意顺序 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int N; int a[maxn]; int main() { scanf("%d", &N); for(i 阅读全文
posted @ 2020-07-10 08:35 丧心病狂工科女 阅读(277) 评论(0) 推荐(0) 编辑