易水寒learning
易水寒learning
全部文章
题解
未归档(2)
归档
标签
去牛客网
登录
/
注册
易水寒learning的博客
全部文章
/ 题解
(共22篇)
素数的判定
#include <iostream> #include <cstdio> #include <cmath> using namespace std; bool Judge(int x){ if(x<2) //...
C++
2022-01-20
0
418
进制转换2
#include <iostream> #include <cstdio> #include <vector> #include <string> using namespace std; char IntToChar(int x){ ...
C++
2022-01-20
0
377
进制转换——10转2
#include <iostream> #include <cstdio> #include <vector> #include <string> using namespace std; string Divide(string str,int ...
C++
2022-01-20
3
604
栈的应用——简单运算器
#include <iostream> #include <cstdio> #include <cctype> #include <string> #include <stack> using namespace std; int...
C++
栈
2022-01-19
0
499
向量的应用——完数与盈数
#include <iostream> #include <cstdio> #include <vector> using namespace std; vector<int> numberE; //由于完数与盈数数量未知...
C++
2022-01-19
0
450
多种方法实现查找
线性查找 #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
整数奇偶排序——比较函数sort
#include <iostream> #include <cstdio> #include <algorithm> using namespace std; int arr[10]; bool Compare(int x,int y){ if(x%...
C++
2022-01-16
1
462
自定义函数—成绩排序
自定义函数:当比较函数返回值为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
首页
上一页
1
2
3
下一页
末页