摘要:
A.统计字母个数。 #include<bits/stdc++.h> using namespace std; string s; int n; map<char,int> mp; int main() { ios::sync_with_stdio(0); cin >> s >> n; int cnt 阅读全文
posted @ 2017-08-26 21:24
zzzzzzzzhu
阅读(216)
评论(0)
推荐(0)
摘要:
A.排序,比较中间两个大小。 #include<bits/stdc++.h> using namespace std; int n,a[205]; int main() { ios::sync_with_stdio(0); cin >> n; for(int i = 1;i <= 2*n;i++) 阅读全文
posted @ 2017-08-26 19:34
zzzzzzzzhu
阅读(194)
评论(0)
推荐(0)
摘要:
A.map统计数量,更新最大值。 #include<bits/stdc++.h> using namespace std; int n; map<int,int> mp; int main() { ios::sync_with_stdio(0); int T; cin >> T; while(T-- 阅读全文
posted @ 2017-08-26 18:33
zzzzzzzzhu
阅读(234)
评论(0)
推荐(0)

浙公网安备 33010602011771号