摘要: 暴力: #include <bits/stdc++.h> #include<math.h> #include <string> using namespace std; const int N = 100005; long int temp[N]; int main(){ char temp[N]; 阅读全文
posted @ 2020-01-14 21:03 JasonPeng1 阅读(134) 评论(0) 推荐(0)
摘要: 并没有用到双指针遍历 #include <bits/stdc++.h> #include<math.h> #include <string> using namespace std; const int N = 2000005; long int temp[N]; int main(){ int c 阅读全文
posted @ 2020-01-14 17:54 JasonPeng1 阅读(144) 评论(0) 推荐(0)
摘要: 插入排序: #include <string> using namespace std; const int N = 111; //插入排序 int temp[N]; int main(){ int n; cin>>n; for(int i=0;i<n;++i){ cin>>temp[i]; } i 阅读全文
posted @ 2020-01-14 14:05 JasonPeng1 阅读(180) 评论(0) 推荐(0)