摘要:
#include<bits/stdc++.h> using namespace std; int main(void){ int n; string s; string p = "wang"; while(cin >> s) { int cnt = 0; size_t found = s.find( 阅读全文
摘要:
#include<iostream> using namespace std; void shiftone(string &s, int m) { while (m--) { char t = s[0]; int len = s.size(); for (int i = 1; i < len; ++ 阅读全文
摘要:
大概思路: 一个map<string,int>存储输入的字符内容以及输入的次数,对次数进行判断,输出少于指定次数的字符串: #include<iostream> #include<map> #include<string> using namespace std; int main() { int 阅读全文