码迷,mamicode.com
首页 >  
搜索关键字:using 127.0.0.1 for servername    ( 53996个结果
八皇后(92种解)
//八皇后#include<bits/stdc++.h>using namespace std;int a[9];bool b[9],c[17],d[17];int num;int print(){ num++; for(int i=1;i<=8;i++) cout<<"("<<i<<","<<a[ ...
分类:其他好文   时间:2021-02-05 10:58:33    阅读次数:0
状态压缩泛做
P3052 [USACO12MAR]Cows in a Skyscraper G 预处理出每种状态的体积和,然后枚举子集转移。 时间复杂度 \(O\left(3^n\right)\)。 code: #include<bits/stdc++.h> using namespace std; #defin ...
分类:其他好文   时间:2021-02-05 10:29:05    阅读次数:0
Installing MySQL on Microsoft Windows Using a noinstall ZIP Archive
Extracting the Install Archive D:\mysql\mysql-5.7.32-winx64 Creating an Option File D:\mysql\mysql-5.7.32-winx64\my.ini [client] default-character-set ...
分类:数据库   时间:2021-02-04 12:03:30    阅读次数:0
【背包九讲专题】完全背包
暴力朴素无优化写法: #include<bits/stdc++.h> using namespace std; const int maxn=1e3+5; int dp[maxn][maxn]; int v[maxn],w[maxn]; int main(){ int n,m;scanf("%d%d ...
分类:其他好文   时间:2021-02-04 12:02:33    阅读次数:0
c++ 拷贝构造函数
1.拷贝构造函数代码: 当类对象用于值传递时,会调用拷贝构造函数 #include<iostream> using namespace std; class CExample { private: int a; public: //构造函数 CExample(int b) { a=b; printf ...
分类:编程语言   时间:2021-02-04 11:44:47    阅读次数:0
c++学习草稿
循环 1 #include<iostream> 2 3 using namespace std; 4 int main() 5 { 6 int my_array[] = { 1,2,3,4,5,6,7,8 }; 7 // 不会改变 my_array 数组中元素的值 8 // x 将使用 my_arr ...
分类:编程语言   时间:2021-02-04 11:44:06    阅读次数:0
程序读取数据的方法
方法一:使用重定向的方法读取数据 #define LONG using namespace std; int main() { #ifdef LONG freopen("P5744_1.in", "r", stdin); freopen("P5744_1.out", "w", stdout); #e ...
分类:其他好文   时间:2021-02-03 10:58:58    阅读次数:0
CF1406A - Subset Mex 题解
先对数组升序排序。 排序后,顺次枚举数组中的每个数。 令两个子集分别为 \(A\) 与 \(B\), 读入数组为 \(q\). 对于每个 \(q[i]\): 若 \((q[i]-1)\notin A\)(即此数的前驱不在 \(A\) 中,换句话说就是 \(\operatorname{mex}(A)= ...
分类:其他好文   时间:2021-02-03 10:42:05    阅读次数:0
# Explain 详解(下)
# Explain 详解(下) 标签: MySQL 是怎样运行的 ## 执行计划输出中各列详解 本章紧接着上一节的内容,继续唠叨`EXPLAIN`语句输出的各个列的意思。 ### Extra 顾名思义,`Extra`列是用来说明一些额外信息的,我们可以通过这些额外信息来更准确的理解`MySQL`到底 ...
分类:其他好文   时间:2021-02-03 10:33:10    阅读次数:0
rpm数据库被损坏修复方案
故障报错:error: db5 error(11) from dbenv->open: Resource temporarily unavailable error: cannot open Packages index using db5 - Resource temporarily unavai ...
分类:数据库   时间:2021-02-03 10:32:44    阅读次数:0
53996条   上一页 1 ... 42 43 44 45 46 ... 5400 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!