解析 考场时想多了,其实根本不用分阶段 一维状压 \(DP\) 就行了 可我没想清楚,加了个第几次去稳固一个点的阶段 然后时间就炸了!!! \(Code\) #include<cstdio> #include<cmath> #include<algorithm> using namespace st ...
分类:
其他好文 时间:
2020-08-10 14:33:20
阅读次数:
66
#include<iostream> #include<cstdio> using namespace std; int main(){ double n; cin >> n; double l = -10000, r = 10000; while(r - l > 1e-8){ // 由于要保留6位 ...
分类:
其他好文 时间:
2020-08-10 13:11:59
阅读次数:
62
#include<stdio.h> #include<string> #include<string.h> #include<iostream> using namespace std; //compare比较函数:相等返回0,大于返回1,小于返回-1 int compare(string str1 ...
分类:
其他好文 时间:
2020-08-09 14:21:42
阅读次数:
81
构造字符串 规定相同前缀数目 https://www.ancode.club/index.php/2020/08/07/acm7/ 1 #include<iostream> 2 #include<string.h> 3 #include<cmath> 4 using namespace std; 5 ...
分类:
其他好文 时间:
2020-08-08 23:44:12
阅读次数:
88
题目链接https://loj.ac/problem/6277 1 #include<bits/stdc++.h> 2 3 using namespace std; 4 typedef long long ll; 5 const int maxn = 1e5 + 10; 6 const int in ...
分类:
其他好文 时间:
2020-08-08 21:23:31
阅读次数:
77
Prim算法 复杂度:O(N*N) #include<bits/stdc++.h> using namespace std; const int maxn = 1005; int n; int d[maxn], vis[maxn], mat[maxn][maxn]; int main(){ int ...
分类:
其他好文 时间:
2020-08-08 00:31:58
阅读次数:
61
Description如果一个括号序列插入"+"和"1"后,可以得到一个正确的数学表达式,那么它被称为"合法"的。例如,序列"(())()","()"和"(()(()))"是合法的,但")(","(()"和"(()))("不是合法的。 给出一个由"("和")"字符组成的字符串。你要找出它最长的是合法 ...
分类:
其他好文 时间:
2020-08-07 18:04:40
阅读次数:
72
题意: 分析: 代码: #include <bits/stdc++.h> using namespace std; typedef long long ll; const int mod=1e9+7; const int N=1e6+6; int mu[N]; int prime[N],cnt; b ...
分类:
其他好文 时间:
2020-08-07 12:39:20
阅读次数:
82
1.开启防火墙 2.修改listener.ora # listener.ora Network Configuration File: C:\app\username\product\12.1.0\dbhome_1\NETWORK\ADMIN\listener.ora# Generated by O ...
分类:
数据库 时间:
2020-08-07 12:35:44
阅读次数:
93
增加了标记,分水岭变换与着色,着色中的轮廓填充判定条件可以仔细看一下,下面是分水岭分割完整代码 #include"pch.h" #include<iostream> #include<opencv2/opencv.hpp> #include<math.h> using namespace std; ...
分类:
其他好文 时间:
2020-08-07 00:29:40
阅读次数:
104