- 博客(4)
- 收藏
- 关注
原创 蓝桥杯 第n位小数
1.注意循环小数,如果中途t与a%b相同,则循环(会超时) 2.首先求余得余数t,这样才是小数的开始! 3.了解除法运算 #include <iostream> #include <cstring> #include <cmath> #include <algorithm> using namespace std; int main() { ...
2020-02-22 22:44:38 109
原创 蓝桥杯 分考场 涂色问题dfs
#include <iostream> #include <cstring> #include <cmath> #include <algorithm> using namespace std; int F[105][105];//互相认识的学生m,n,F[m][n]=F[n][m]值为1 int room[105][105];//room[i]...
2020-02-22 21:27:16 175
原创 蓝桥杯 阶乘计算
#include <iostream> #include <cstring> #define MAX 3000 using namespace std; long long A[MAX]; int cnt=1; void caculate(int n) { for(int i=0;i<cnt;i++) { A[i]*=n; ...
2020-02-09 15:06:44 204
原创 数据结构:中缀式转为后缀式
#include <iostream> #include <cctype> #include <cstring> using namespace std; template<class ElemType> class stack { private: ElemType *base; // 栈底指针 ElemType *top; ...
2018-11-18 03:05:51 151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人