#include<bits/stdc++.h> using namespace std; typedef long long ll; namespace MCMF { const int MAXN = 10000, MAXM = 10000, INF = 0x7fffffff; int head[M ...
分类:
其他好文 时间:
2021-05-25 17:42:56
阅读次数:
0
O(logn)最长上升子序列并输出 +++ pre数组记录转移。 #include <iostream> #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int N = 1e6 ...
分类:
其他好文 时间:
2021-05-25 17:36:48
阅读次数:
0
#include<cstdio> #include<iostream> #include<cstring> #include<cmath> #include<algorithm> using namespace std; const int N=505; int s,p,tot,cnt; struc ...
分类:
其他好文 时间:
2021-05-24 16:03:43
阅读次数:
0
有一个棋盘,每次你可以选相邻的两个位置都加一。
问你最少要多少次操作才能让棋盘上的数都变成一样的,如果不能就输出 -1。 ...
分类:
其他好文 时间:
2021-05-24 15:59:03
阅读次数:
0
using System; using System.Windows.Forms; using System.Drawing; namespace PickBoxTest { /// <summary> /// 这个类实现了窗体控件的 大小和移动函数 /// 用户运行时编辑 /// </summar ...
分类:
其他好文 时间:
2021-05-24 15:55:35
阅读次数:
0
大乱炖之字符串 1.字符串: 字符串最后一位 ‘\0’结束 1.cin>> 接受一个字符串,遇“空格”、“Tab”、“回车”都结束 #include <iostream> using namespace std; int main() { char c[10]; cin>>c; cout<<c; r ...
分类:
其他好文 时间:
2021-05-24 15:51:08
阅读次数:
0
一、C++的浅拷贝与深拷贝对比Java的浅克隆与深克隆案例 C++部分 #include<iostream> #include<string> using namespace std; class Email { private: string title; /*这里是一个指针,当经行拷贝时,会产生 ...
分类:
其他好文 时间:
2021-05-24 14:17:06
阅读次数:
0
#include <iostream> #include <cstring> #include <cmath> using namespace std; using ll=long long ; const int maxn=1e3+10; int dp[maxn][maxn]; int sum[m ...
分类:
其他好文 时间:
2021-05-24 13:59:03
阅读次数:
0
差一点就是差很多! 今天打cf感觉不是很认真,而且做完两题之后就跟榜走,看D,能感觉出D是个dp,但是就是没思路,看了好久,又回头做C,第一遍写完只有两分钟了,而且我还有一个小地方写错了(两个变量位置不对),但是已经没办法改了,所以就感觉做的很不好 C题从第一个开始走,如果是想左的就看前面有没有没消 ...
分类:
其他好文 时间:
2021-05-24 13:07:29
阅读次数:
0
算法代码 C#代码 using System; namespace Prim { class Program { static void Main(string[] args) { int numberOfVertexes = 9, infinity = int.MaxValue; int[][] ...
分类:
编程语言 时间:
2021-05-24 12:41:56
阅读次数:
0