菜鸟的博客

纵有疾风起,人生不言弃。

导航

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 41 下一页

2023年9月22日 #

高精度乘法

摘要: 1 #include <iostream> 2 #include <vector> 3 using namespace std; 4 5 vector<int> mul(vector<int>& A, int &b) 6 { 7 vector<int> C; 8 int t = 0; 9 for ( 阅读全文

posted @ 2023-09-22 22:41 hhmzd233 阅读(16) 评论(0) 推荐(0)

2023年9月21日 #

PPT题目

摘要: 1 //生成一千个随机数 2 public class LinearCongruentialGenerator { 3 private static final long MODULUS = 2147483647; // 2^31 - 1 4 private static final long MU 阅读全文

posted @ 2023-09-21 21:38 hhmzd233 阅读(18) 评论(0) 推荐(0)

2023年9月20日 #

高精度减法

摘要: ## A-B ~~~c++ #include <iostream> #include <string> #include <vector> using namespace std; //判断是否A>=B bool cmp(vector<int>& A, vector<int>& B) { if (A 阅读全文

posted @ 2023-09-20 23:07 hhmzd233 阅读(7) 评论(0) 推荐(0)

2023年9月19日 #

2023.9.19 二年级四则运算在线答题

摘要: package Test2333; import java.util.Random; import java.util.Timer; import java.util.TimerTask; import java.util.Scanner; public class daily1 { //设置时长( 阅读全文

posted @ 2023-09-19 20:15 hhmzd233 阅读(15) 评论(0) 推荐(0)

2023.9.18

摘要: // 高精度 //注:大写字母代表位数大于(1e6),小写字母代表小于(1e6)的数 //在存储较大数时,用数组来记录每一位的数字,数组下标为0,则记录大数的个位,依次往后推 ## A+B c++ #include <iostream> #include <vector> using namespa 阅读全文

posted @ 2023-09-19 20:14 hhmzd233 阅读(12) 评论(0) 推荐(0)

2023年9月15日 #

浮点数二分

摘要: ## 浮点数二分 ~~~c++ int test(int l,int r) { double x; cin>>x; double l = 0,r = x; while(r - l<1e-6) { double mid = (l+r)/2; if(check(mid)) r = mid; else l 阅读全文

posted @ 2023-09-15 20:35 hhmzd233 阅读(14) 评论(0) 推荐(0)

java作业2.商品管理系统重写

摘要: 1 ## 商品管理系统重写 2 3 ~~~java 4 package test03; 5 6 public class WarehouseInformation { 7 private String itemno;//编号 8 private String itemname;//名字 9 priv 阅读全文

posted @ 2023-09-15 10:31 hhmzd233 阅读(21) 评论(0) 推荐(0)

java作业1.2023.9.15

摘要: ## 典型Java程序开发过程 1. Edit(编辑):书写代码并保存到磁盘上 2. Compile(编译):编译器生成节码 3. Load(装入):类装载器在内存中保存字节码 4. Verify(校验):校验器保证字节码不违反安全规则 5. Execute(执行):解释器将字节码翻译成机器码 ## 阅读全文

posted @ 2023-09-15 10:29 hhmzd233 阅读(22) 评论(0) 推荐(0)

2023年9月14日 #

2023.9.14 整数二分排序

摘要: 1 # 二分 2 3 ## 整数二分 4 5 ~~~c++ 6 //区间[l,r]被划分成[l,mid]和[mid+1,r]时使用 7 int test01(int l,int r) 8 { 9 while(l<r) 10 { 11 int mid = (l+r)/2; 12 bool check( 阅读全文

posted @ 2023-09-14 23:18 hhmzd233 阅读(20) 评论(0) 推荐(0)

2023年9月12日 #

快速排序

摘要: ## 快速排序 -- 分治 1. 确定分界点:起点、中点、终点、随机点 2. 调整区间,将大于分界点的数放到右边区间,将小于分界点的数放到左边区间 3. 递归整理左右两端 ~~~c++ #include <iostream> using namespace std; #include <stdio. 阅读全文

posted @ 2023-09-12 22:27 hhmzd233 阅读(7) 评论(0) 推荐(0)

上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 41 下一页