码迷,mamicode.com
首页 >  
搜索关键字:using 127.0.0.1 for servername    ( 53996个结果
[模板]最小圆覆盖
#include <bits/stdc++.h> using namespace std; const double EPS = 1e-8; const int N = 1e5+10; struct Point{ double x, y; }; int n; Point p[N]; bool equ ...
分类:其他好文   时间:2021-03-10 12:57:35    阅读次数:0
[CSS] Choose between Grid layout and flexbox
1. Grid: by default showing content in Y axis (column), Flex: by default showing content in X axis. Exp: If you want to style a header.. you can use f ...
分类:Web程序   时间:2021-03-09 13:32:34    阅读次数:0
0706. Design HashMap (E)
Design HashMap (E) 题目 Design a HashMap without using any built-in hash table libraries. To be specific, your design should include these functions: pu ...
分类:其他好文   时间:2021-03-08 14:02:58    阅读次数:0
C++图论算法——图的储存方式
使用二维数组邻接矩阵储存图 无向图: 图G 定义图G[101][101],G[i][j]的值表示从结点vi到vj是否有边或弧,若有,取值为1或权值,若无,则取值为0或∞。以下是图G用邻接矩阵表示的列表: 结点 A B C D A 0 1 1 1 B 1 0 0 1 C 1 0 0 1 D 1 1 1 ...
分类:编程语言   时间:2021-03-08 13:49:48    阅读次数:0
P1855 榨取kkksc03
[Aimee](P1855 榨取kkksc03) 很简单的dp #include<iostream> #include<cstring> using namespace std; int n,m,t; int mi[1000]; int ti[1000]; int dp[201][301][201] ...
分类:其他好文   时间:2021-03-08 13:47:33    阅读次数:0
STL之queue 与 priority_queue
queue //STL之queue用法 //实现先进先出 #include<stdio.h> #include<queue> using namespace std; int main() { //定义 queue<int> qu; //进队 qu.push(1); qu.push(2); qu.p ...
分类:其他好文   时间:2021-03-08 13:44:24    阅读次数:0
在scanf函数中占位符使用错误而产生的一些错误
出现的问题 在做编程题的的时候,遇到了一个很奇怪的错误,出问题的代码如下: 1 #include <cstdio> 2 using namespace std; 3 4 int main() { 5 int c; 6 bool b; 7 // printf("%p %p", &c, &b); // ...
分类:其他好文   时间:2021-03-08 13:38:55    阅读次数:0
STL之map
//STL之MAP用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c ...
分类:其他好文   时间:2021-03-08 13:34:05    阅读次数:0
LIS
#include <bits/stdc++.h> using namespace std; int ans,a[1000],dp[1000],n; int main(){ scanf("%d",&n); for(int i=1;i<=n;i++){ scanf("%d",&a[i]); } for( ...
分类:其他好文   时间:2021-03-08 13:08:20    阅读次数:0
rope
rope (类似于块状链表的结构) 需要增加的预处理指令: #include<ext/rope> using namespace __gnu_cxx; rope<int> rp; 基本操作: 在末尾插入 \(x\) : rp.push_back(x); 在 \(pos\) 处插入 \(x\) : r ...
分类:其他好文   时间:2021-03-06 15:01:46    阅读次数:0
53996条   上一页 1 ... 32 33 34 35 36 ... 5400 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!