摘要: 1.环境配置 jdk配置1.8,我查了我的java -version是18,好像要在此电脑里重新配置jdk版本,但是我找了E盘只找到1.8的版本,没有找到18的版本,为什么我的java version是18?我在C盘里没找到18的jdk版本呀。不知道怎么找。然后记得买电脑耳机。 2.面向对象,集合, 阅读全文
posted @ 2023-07-02 09:12 chenxinyue 阅读(28) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; const int N=1e4+10; int a[N]; int st[N];//标记数组 int n,k; int main(){ cin>>n>>k; for(int i=0;i<n;i++){ cin>>x; i 阅读全文
posted @ 2023-03-17 17:55 chenxinyue 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int main(){ double n; cin>>n; int l=1,r=n; while(l+1e-7<r){ double mid=(l+r)/2; if(mid*mid*mid>=n){ r=mid;}els 阅读全文
posted @ 2023-03-17 17:41 chenxinyue 阅读(31) 评论(0) 推荐(0) 编辑
摘要: #include<bits/stdc++.h> using namespace std; int n,m; int l,r; const int N=1e5+10; int a[N]; int main(){ cin>>n>>m; for(int i=1;i<=n;i++){ cin>>a[i]; 阅读全文
posted @ 2023-03-17 16:47 chenxinyue 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<queue> using namespace std; int n,m; int e[N],ne[N],idx,h[N]; int q[N];//队列 void add(int a,int b){ e[idx 阅读全文
posted @ 2023-03-16 22:51 chenxinyue 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; int n; const int N=1e5+10; int e[N*N],ne[N*N],idx,h[N];//注意要开N*N的大小 bool st[N];//标记数组 标记一下这个节点是否被走过 true即为被走过 阅读全文
posted @ 2023-03-16 22:16 chenxinyue 阅读(11) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<unorderd_map> const int N=10; int d[N]; using namespace std; int dfs(string start){ string end="12345678 阅读全文
posted @ 2023-03-16 21:58 chenxinyue 阅读(20) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<cstring> #include<queue> const int N=110; int n,m; typedef pair<int,int> PII; int g[N][N];//存图 int d[N][N];//记录距离 PII q[N* 阅读全文
posted @ 2023-03-16 21:24 chenxinyue 阅读(17) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; const int N=20;//N*N 两倍 int n; bool col[N],dg[N],udg[N];//同一列,对角线,反对角线(标记一下是否可以走) //udg 副对角线 ///英语单词 column 列 阅读全文
posted @ 2023-03-14 20:39 chenxinyue 阅读(23) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> using namespace std; const int N=10; bool st[N];//记录数字是否被使用 int path[N];//输出所有可能的组合 int n; int dfs(int u){//u表示深度 if(u>n){ for(int 阅读全文
posted @ 2023-03-14 20:17 chenxinyue 阅读(12) 评论(0) 推荐(0) 编辑