09 2022 档案

摘要:电子学会五级-搜索-宽搜 1 抓住那头牛 http://noi.openjudge.cn/ch0205/2971/ #include<bits/stdc++.h> using namespace std; int N,K; const int MAXN=100000+5; bool vis[MAXN 阅读全文
posted @ 2022-09-30 16:20 new-code 阅读(22) 评论(0) 推荐(0) 编辑
摘要:购买链接 阅读全文
posted @ 2022-09-25 22:30 new-code 阅读(103) 评论(0) 推荐(0) 编辑
摘要:下载地址 gitee: https://gitee.com/HongYii/Arduino-LiquidCrystal-I2C-library 百度网盘: 链接: https://pan.baidu.com/s/1XzhbjPQFgApPWLnUhTtjxQ?pwd=gq5v 提取码: gq5v 复 阅读全文
posted @ 2022-09-25 16:58 new-code 阅读(42) 评论(0) 推荐(0) 编辑
摘要:舵机 #include<Servo.h> Servo myServo; int djPin=12; void setup() { // put your setup code here, to run once: myServo.attach(djPin); } void loop() { // p 阅读全文
posted @ 2022-09-25 11:24 new-code 阅读(50) 评论(0) 推荐(0) 编辑
摘要:数字信号、模拟信号操作函数 数字信号操作函数 pinMode(pin,mode) 功能: 设置指定引脚工作模式 参数: pin 为数字引脚 0~13 、A0~A5 mode 为INPUT/OUTPUT/INPUT_PULLUP 返回值 无 2.digitalRead(pin) int dwq=A0; 阅读全文
posted @ 2022-09-25 10:51 new-code 阅读(169) 评论(0) 推荐(0) 编辑
摘要:光敏电阻读取 P81 int gmPin=A0;//电位器A0 void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(gmPin,INPUT);//引脚工作模式为输入 } void l 阅读全文
posted @ 2022-09-25 10:33 new-code 阅读(84) 评论(0) 推荐(0) 编辑
摘要:int Sensor= 2; void setup() { // put your setup code here, to run once: Serial.begin(9600); pinMode(Sensor, INPUT); } void loop() { // put your main c 阅读全文
posted @ 2022-09-24 22:58 new-code 阅读(18) 评论(0) 推荐(0) 编辑
摘要:2022 CCF 非专业级别软件能力认证第一轮 (CSP-J1) 入门级 C++ 语言试题 认证时间: 2022年9月18日 09:30 ~11:30 1.以下哪种功能没有涉及C++语言的面向对象特性支持 ( ) A. C++中调用printf函数 B. C++中调用用户定义的类成员函数 C. C+ 阅读全文
posted @ 2022-09-19 00:09 new-code 阅读(1096) 评论(0) 推荐(0) 编辑
摘要:电位器 电位器模板有S-V-G,通过3P数据线,连接扩展板A0~A5任意引脚,读取模拟输入数据。 analogRead 函数 analogRead(pin) 系统自带函数,功能是从指定的模拟输入引脚(A0~A5) 读取数据值,将0~5V输入电压映射到 0~1023之间的整数值 示例代码 const 阅读全文
posted @ 2022-09-18 13:04 new-code 阅读(372) 评论(0) 推荐(0) 编辑
摘要:C语言中进制前缀 二进制 前缀 0b 示例 0b100 十进制 4 八进制 前缀 0 示例 0100 十进制 64 十进制 无前缀 示例 100 十进制 100 十六进制 前缀 0x 示例 0x100 十进制 256 示例代码 void setup() { // put your setup cod 阅读全文
posted @ 2022-09-18 10:56 new-code 阅读(556) 评论(0) 推荐(0) 编辑
摘要:float类型小数点后有效数字有几位? float类型小数点后有效数字为6~7位。 C语言中浮点型一般分为float单精度型、double双精度型、long double长精度型,单精度浮点型小数点后面有效数字为6~7位和双精度浮点型小数点后面有效数字为15~16位。 单精度为32位,双精度为64位 阅读全文
posted @ 2022-09-17 17:12 new-code 阅读(221) 评论(0) 推荐(0) 编辑
摘要:线性探查法 线性探查法的基本思想:在产生散列冲突时,将产生散列冲突的关键字向后存储 当使用了线性探查法之后,整个散列表就被视为一个环形表了 图示说明 散列函数为f(k)=k%11。且散列表的当前状态如下图所示 当要插入58关键字时,求得其起始桶为3=58%11,但是3号桶已经存放了80,那么就将其插 阅读全文
posted @ 2022-09-15 14:39 new-code 阅读(130) 评论(0) 推荐(0) 编辑
摘要:连通图、强连通图 图中从一个顶点到达另一顶点,若存在至少一条路径,则称这两个顶点是连通着的。 例如图 1 中,虽然 V1 和 V3 没有直接关联,但从 V1 到 V3 存在两条路径,分别是 V1-V2-V3 和 V1-V4-V3,因此称 V1 和 V3 之间是连通的。 图 1 顶点之间的连通状态示意 阅读全文
posted @ 2022-09-14 11:18 new-code 阅读(298) 评论(0) 推荐(0) 编辑
摘要:吃奶酪 https://www.luogu.com.cn/problem/P1433 纯暴力DFS #include<bits/stdc++.h> using namespace std; struct point{ double x,y; bool visit; }ps[16]; int n; d 阅读全文
posted @ 2022-09-05 22:58 new-code 阅读(34) 评论(0) 推荐(0) 编辑
摘要:P1219 八皇后 Checker Challenge https://www.luogu.com.cn/problem/P1219 #include<iostream> #include<stdio.h> using namespace std; const int maxn=14; int cn 阅读全文
posted @ 2022-09-01 23:01 new-code 阅读(26) 评论(0) 推荐(0) 编辑
摘要:贪心算法-过河问题 https://www.luogu.com.cn/problem/P1809 /* 1个 a1 2个 a1+a2 3个 a3+a1+a2 >3 运输左边用时最长的两个人去右边 有两种最优方案 取最小 4个 左 a1 a2 a3 a4 右 a1和a4 --a4 左 a2 a3 右 阅读全文
posted @ 2022-09-01 19:04 new-code 阅读(40) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示