题意:
给定n个点m条边的无向图
每次必须沿着LOVE走,到终点时必须是完整的LOVE,且至少走出一个LOVE,
问这样情况下最短路是多少,在一样短情况下最多的LOVE个数是多少。
有自环。
#include
#include
#include
#include
#include
#include
using namespace std;
typedef __int64 ll...
分类:
其他好文 时间:
2014-09-28 20:22:06
阅读次数:
186
系统中一个文件夹出现两个文件名乱码的css文件,正常删除不掉,删除上一级文件夹也无法删除那两个乱码的文件,很是头疼,尝试了用i节点来删除该文件,成功。乱码文件如下:[root@amain]#ll总用量156-rw-r--r--1rootroot49227月912:08common-????.css-rw-r--r--1rootroot87439月..
分类:
系统相关 时间:
2014-09-28 19:01:07
阅读次数:
210
Linux_su处理方法[root@xxx~]#su-user1su:incorrectpassword[root@xxx~]#su-user1su:incorrectpassword[root@xxx~]#su-user1su:incorrectpassword注:如果出现此类的故障,解决的思路如下1.查看/bin/su的配置文件的权限[root@xxx~]#ll/bin/su-rwsr-xr-x.1rootroot34904Mar10201..
分类:
系统相关 时间:
2014-09-28 18:15:45
阅读次数:
215
最多可以暴力打开k次 对于一个环暴力一次 n个数排成i个(i
#include
#include
using namespace std;
typedef __int64 LL;
LL dp[22][22];
LL f[22];
int main()
{
dp[0][0] = 1;
f[0] = 1;
for(int i = 1; i <= 20; i++)
{
dp[i][i]...
分类:
其他好文 时间:
2014-09-28 18:02:13
阅读次数:
139
输入n(1#include #include #include #include #include #include #include #include using namespace std;#define MP make_pair#define ll long long#define inf 0...
分类:
其他好文 时间:
2014-09-28 17:47:53
阅读次数:
177
题意 求给定区间[a,b] 所有整数的立方和 0
注意10000^3会爆int
#include
using namespace std;
typedef long long ll;
int main()
{
int cas;
ll a, b, ans;
scanf("%d", &cas);
for(int k = 1; k <= cas; ++k)
...
分类:
其他好文 时间:
2014-09-28 13:31:12
阅读次数:
184
.............. JLabel ll = new JLabel(dlg.getNameText() + ":" + dlg.getIPText(), ii[index], JLabel.LEFT); ...
分类:
编程语言 时间:
2014-09-28 01:59:50
阅读次数:
205
本文出自:点击打开链接
原题见hdu5050
代码:
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
#define INF 0x3f3f3f3f
#define ll long long int
#d...
分类:
其他好文 时间:
2014-09-28 00:08:51
阅读次数:
196
题意:
用x个大M 可以把平面分成至多几块。
就是折线切割平面的加强版。
一个简单的递推式 : F(x+1) = 16x+1+F(x)
然后转成通项公式,然后C++ 位压大数模拟
#include
#include
#include
#include
using namespace std;
typedef long long ll;
const int mod = 1...
分类:
编程语言 时间:
2014-09-27 20:13:50
阅读次数:
226
其实求的这个数的式子化简一下,就是C(N,M).....#include #include #include #define LL __int64using namespace std;LL N,M;LL myc(LL n,LL r){ LL sum=1; for(LL i=1;i<=r;i++) ...
分类:
其他好文 时间:
2014-09-27 12:59:39
阅读次数:
142