摘要: #include <iostream> #include<algorithm> #include<cstring> using namespace std; double a,b,c,d; double f(double x){ return a*x*x*x+b*x*x+c*x+d; } void 阅读全文
posted @ 2022-01-23 10:51 ethon-wang 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 关于C++中ios::sync_with_stdio(false); cin,cout之所以效率低,是因为先把要输出的东西存入缓冲区,再输出,导致效率降低,而这段语句可以来打消iostream的输入 输出缓存,可以节省许多时间,使效率与scanf与printf相差无几 #include<bits/s 阅读全文
posted @ 2022-01-22 13:54 ethon-wang 阅读(78) 评论(0) 推荐(0) 编辑
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<cstring> using namespace std; void beford(string in, string aft) { if (in.size() > 0) 阅读全文
posted @ 2022-01-21 12:33 ethon-wang 阅读(67) 评论(0) 推荐(0) 编辑
摘要: #include <algorithm> #include <iostream> #include <cstdio> #include<cstring> using namespace std; int main(){ int n,a,b,c; cin>>n; int dp[n+5][n+5][n+ 阅读全文
posted @ 2022-01-21 11:47 ethon-wang 阅读(214) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <algorithm> using namespace std; int d2b(int n,int b,char c[]){ int i=0,k; while(n){ k=n%b; n/=b; if(k 阅读全文
posted @ 2022-01-19 11:53 ethon-wang 阅读(85) 评论(0) 推荐(0) 编辑
摘要: reference #include<iostream> #include<cstring> using namespace std; typedef long long LL; const int N = 100005; int a[N]; int main() { int n,k,x; LL s 阅读全文
posted @ 2022-01-18 14:08 ethon-wang 阅读(53) 评论(0) 推荐(0) 编辑
摘要: reference #include<iostream> #include<cstring> using namespace std; /*使得将巧克力按照边长maxX进行切分 ,切分成的份数要大于等于K, 而如果按照maxX+1进行切割 ,将不再能够切出K块。 如果从1-100000逐个查找,那么 阅读全文
posted @ 2022-01-18 13:36 ethon-wang 阅读(193) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <cstring> #include <algorithm> using namespace std; int res(int num){ if(num == 1){ return 1; } if(num == 2){ return 2; } 阅读全文
posted @ 2022-01-18 12:22 ethon-wang 阅读(221) 评论(0) 推荐(0) 编辑
摘要: simplememory 阅读全文
posted @ 2022-01-18 11:59 ethon-wang 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 项目地址https://github.com/201206030/novel-plus mysql配置:执行sql脚本使用绝对路径需要用反斜杠“/” 阅读全文
posted @ 2021-03-04 22:37 ethon-wang 阅读(134) 评论(0) 推荐(0) 编辑