易水寒learning
易水寒learning
全部文章
题解
未归档(2)
归档
标签
去牛客网
登录
/
注册
易水寒learning的博客
全部文章
/ 题解
(共6篇)
多种方法实现查找
线性查找 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; const int MAX=100; int arr[MAX]; bool LinSear...
C++
C
2022-01-17
1
392
自定义函数—成绩排序
自定义函数:当比较函数返回值为true,表示第一个参数会排列在第二个参数前面,反之亦然 #include <iostream> #include <cstdio> #include <algorithm> using namespace std; const ...
C++
C
2022-01-16
0
386
排序
#include <iostream> #include <cstdio> #include <algorithm> using namespace std; const int MAX=100; int arr[MAX]; int main(){ i...
C
C++
2022-01-16
0
325
手机键盘
关键就在于如何去判断相邻两个字符是否属于同一按键内,KEY:字母在字符串中本身的间距等于按键次数之差,则属于同一按键 #include<iostream> #include <cstdio> using namespace std; int keyTab[26]={1,2...
C
C++
2022-01-15
2
448
打印日期
#include <iostream> #include <cstdio> using namespace std; int dayTab[2][13]={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,...
C
C++
2022-01-15
22
521
今年的第几天
#include <iostream> #include <cstdio> using namespace std; int dayTab[2][13]={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,...
C++
C
2022-01-15
0
310