摘要: #include <cstdio> #include <iostream> #include <vector> using namespace std; int main(){ int n,min,max; vector<int> number; number.insert(number.end() 阅读全文
posted @ 2020-05-25 22:20 天凉好个秋秋 阅读(96) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <iostream> #include <string> #include <cstring> using namespace std; int main(){ string str; getline(cin,str); for(int i = 阅读全文
posted @ 2020-05-25 15:21 天凉好个秋秋 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> #include <iostream> #include <string> #include <cstring> using namespace std; //统计第一行字符串在第二行中出现的次数 //先遍历第二行,每个元素的次数 //然后遍历第一行,看看 in 阅读全文
posted @ 2020-05-25 14:55 天凉好个秋秋 阅读(235) 评论(0) 推荐(0) 编辑
摘要: #include <string> #include <iostream> //循环加密 int main(){ string str; //获取一行输入,getline(输入方式,存入哪里) while(getline(cin,str)){ //遇到特定输入,跳出循环 if(str == "END 阅读全文
posted @ 2020-05-25 14:54 天凉好个秋秋 阅读(333) 评论(0) 推荐(0) 编辑