#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
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
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
使用二维数组邻接矩阵储存图 无向图: 图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
[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
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
出现的问题 在做编程题的的时候,遇到了一个很奇怪的错误,出问题的代码如下: 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用法 //以往定义的数组实现了int类型向其他类型的映射 //现在想要实现其他类型向其他类型的映射 //通过map实现键值对存储 #include<stdio.h> #include<map> using namespace std; int main() { //定义 map<c ...
分类:
其他好文 时间:
2021-03-08 13:34:05
阅读次数:
0
#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 (类似于块状链表的结构) 需要增加的预处理指令: #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