摘要: #include<bits/stdc++.h> using namespace std; typedef long long ll; ll s,sum,n,k; void smoke(ll i) { if(i>=k) { s=s+floor(i/k); smoke(floor(i/k)+i%k); 阅读全文
posted @ 2020-07-22 16:26 Drophair 阅读(181) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; const long long maxn=1e7+9; typedef long long ll; ll n,k,a[maxn],b[maxn]; void dfs(ll level) { if(level== 阅读全文
posted @ 2020-07-22 16:06 Drophair 阅读(173) 评论(0) 推荐(0)
摘要: 高精度加法 #include <bits/stdc++.h> using namespace std; string s1,s2; int main() { string s1,s2; cin>>s1>>s2; int i,j; int a[20050],b[20050]; memset(a,0,s 阅读全文
posted @ 2020-07-17 20:57 Drophair 阅读(123) 评论(0) 推荐(0)
摘要: 识别 Time Limit: 1 Sec Memory Limit: 256 MB Submission:12 AC:11 Score:100 Submit Description DD 现在有一个长度为 n 的字符串,DD 认为如果所有长度为 x 的子串互不重复,则 x 这个值是可识别的,他现在想 阅读全文
posted @ 2020-07-17 16:21 Drophair 阅读(188) 评论(0) 推荐(0)
摘要: 采用分治思想 #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef unsigned long long ull; double a,b,c,d; double f(double x) { return 阅读全文
posted @ 2020-07-17 12:39 Drophair 阅读(181) 评论(0) 推荐(0)
摘要: #include<bits/stdc++.h> using namespace std; int a[105]= {0}; int b[105]; int pd(int q,int l) { int i; for(i=0; i<l; i++) { if(b[i]==q) { return 0; } 阅读全文
posted @ 2020-07-13 22:58 Drophair 阅读(116) 评论(0) 推荐(0)
摘要: 地址:https://www.luogu.com.cn/problem/P2670 #include<iostream>int a[105][105]={0}; using namespace std; int main() { int n,m; cin>>n>>m; int i,j; char b 阅读全文
posted @ 2020-07-13 13:06 Drophair 阅读(172) 评论(0) 推荐(0)
摘要: 你们在配置环境时是否遇到这个文件下载不下来呢 下载链接都在文末 1、先在GitHub上下载esp32开发板文件,不用git GUI,直接下载zip压缩包,2、解压到arduino ide安装位置的/hardware里, 3、然后再新建文件名为espressif的文件夹,里面再创建以esp32为文件名 阅读全文
posted @ 2020-03-17 11:13 Drophair 阅读(4048) 评论(1) 推荐(0)
摘要: bmp180的简介: • 压力范围:300~1100hPa(海拔 9000 米~-500 米) • 电源电压:1.8V~3.6V(VDDA), 1.62V~3.6V(VDDD) • 尺寸:3.6mmx3.8x0.93mm • 低功耗:5μA,在标准模式 • 高精度:低功耗模式下,分辨率为 0.06h 阅读全文
posted @ 2020-02-21 17:41 Drophair 阅读(847) 评论(0) 推荐(0)
摘要: Description Alice 和Bob 正在对两个序列a1, a2,..., an 和b1, b2,...,bm 进行操作。Alice 首先需要将它们归并成一个长度为n + m 的序列c1,c2,...,cn+m。即将序列a 和b 合并成一个序列c,但不改变a 和b 的顺序。显然可能有许多许多 阅读全文
posted @ 2020-02-19 21:10 Drophair 阅读(452) 评论(0) 推荐(0)