小白成长记录
边陲小镇的一只羊
我不是菜鸟菜鸟!!!!
展开
-
5-6 字符串学习笔记
写个算法,对2个小于1000000000的输入,求结果。 特殊乘法举例:123 * 45 = 14 +15 +24 +25 +34+35 输入 123 45 输出 54 代码实现: #include<bits/stdc++.h> using namespace std; int main(){ string str1,str2; while(cin>>str1...原创 2020-05-06 01:01:52 · 133 阅读 · 0 评论 -
HZNU摸底测试题2
第一题: 双峰插云 代码实现: #include<bits/stdc++.h> using namespace std; int cloud[200][200];//储存云朵的信息 int ve_1[200][200];//一共多少种方案 set<int> se_1[200];//存储每种方案的颜色 int ret[200];//保存每种方案所剩余的那个云 int ma...原创 2020-05-05 00:09:35 · 179 阅读 · 0 评论 -
5-4学习笔记:字符串问题(1)
字符串:遍历、加密、统计、匹配 定义方式构造字符串 #include<bits/stdc++.h> using namespace std; int main(){ string s0="Initial String"; string s1; string s2(s0); string s3(s0,8,3); string s4("A character sequence"...原创 2020-05-04 17:04:36 · 136 阅读 · 0 评论 -
5-4 学习笔记:查找问题
查找:线性查找O(N) 二分查找O(log N) 散列查找O(1) 题目描述: 输入数组长度 n 输入数组 a[1…n] 输入查找个数m 输入查找数字b[1…m] 输出 YES or NO 查找有则YES 否则NO 输入 输入有多组数据 每组输入n,然后输入n个整数,再输入m,然后再输入m个整数(1<=m<=n<=100) 输出 如果在n个数组中输出YES否则输出NO...原创 2020-05-04 16:25:14 · 99 阅读 · 0 评论 -
HZNU摸底测试题
第一题:驼峰命名法 题目描述 代码实现: #include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; string strp,str[101]; while(t--){ cin>>strp; int l=strp.length(); str[0]=strp[...原创 2020-05-03 21:09:02 · 315 阅读 · 0 评论