把数组中所有的奇数放到偶数的左边不在意顺序 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int N; int a[maxn]; int main() { scanf("%d", &N); for(i ...
分类:
编程语言 时间:
2020-07-10 09:21:57
阅读次数:
79
1 public List<Dai> Show(string name="") 2 { 3 using (SqlConnection conn=new SqlConnection("Data Source=.;Initial Catalog=Dai6_21;Integrated Security=T ...
只需要用二进制来表示50个数,这样不会超过ll范围 之后按照dfs建树后建线段树维护 #include<iostream> #include<algorithm> #include<stack> #include<vector> #include<cstring> using namespace s ...
分类:
其他好文 时间:
2020-07-10 00:39:02
阅读次数:
94
使用Merge关键字做插入或更新操作 Merge关键字可以进行2个表之间的更新。 应用场景 批量插入或更新数据; 经销存更新库存 表之间数据的复制 等等 语法说明 MERGE 目标表 USING 源表 ON 匹配条件 WHEN MATCHED THEN 语句 WHEN NOT MATCHED THE ...
分类:
数据库 时间:
2020-07-10 00:08:28
阅读次数:
65
先求一下lca,之后比较一下给定两点的lca与所求点的关系后分类讨论 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=2e5+10; int h[N],ne[N],e[N],idx; int ...
分类:
其他好文 时间:
2020-07-09 23:58:04
阅读次数:
88
今天是小学期的最后一天,我终于完成了小学期的第个程序题,并且借用今天的程序代码使我懂得了更多关于链表的知识,今日的问题是关于约瑟夫问题的求解,我的代码如下:#include<iostream>using namespace std;typedef struct node{ int data; str ...
分类:
其他好文 时间:
2020-07-09 22:36:41
阅读次数:
77
链表总结 链表基础 如何实现一个单链表 #include "bits/stdc++.h" using namespace std; struct MyListNode { int data; MyListNode *next; MyListNode(int left = -1, MyListNode ...
分类:
其他好文 时间:
2020-07-09 22:31:25
阅读次数:
55
今天是小学期的最后一天题目是约瑟夫问题的求解,代码如下:#include<iostream>using namespace std;typedef struct node{ int data; struct node* next;};node* create(){ int n; node* head ...
分类:
其他好文 时间:
2020-07-09 22:15:59
阅读次数:
86
这个问题研究了近两个月,知道这两天,才研究出来是怎么做的。 NX9+VS2012 官方的方法 方法1 1.用NXOPEN C#向导新建exe项目 2.添加代码 NX9+VS2012 using System; using NXOpen; using NXOpen.UF; //新建prt Tag Pa ...
2020年7月9日: 今天是小学期的最后一天,我终于完成了小学期的第个程序题,并且借用今天的程序代码使我懂得了更多关于链表的知识,今日的问题是关于约瑟夫问题的求解,我的代码如下: #include<iostream>using namespace std;typedef struct node{ i ...
分类:
其他好文 时间:
2020-07-09 22:14:17
阅读次数:
89