1、登录到root用户。2、在root下输入:crontab -e3、可能会提示你: no crontab for root - using an empty one 然后会叫你“Select a editor ......”下面有几个选项,就是叫你选择编辑器。(选vim.tiny) 或直接进入编辑...
分类:
其他好文 时间:
2015-06-18 11:15:59
阅读次数:
150
1 using System; 2 using System.Collections.Generic; 3 using System.Drawing; 4 using System.Windows.Forms; 5 using DevExpress.XtraBars; 6 using ...
分类:
其他好文 时间:
2015-06-18 11:07:51
阅读次数:
118
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
求任意两个数的gcd最大值。
#include
#include
#include
#include
#include
#include
#include
#define N 110
using namespace std;
int n;
int s[N];
int gcd(int b,int a) {
return b==0?a:gcd(a%b,b);
}
int main() ...
分类:
其他好文 时间:
2015-06-18 09:42:27
阅读次数:
100
题意:给你两个数a,b,求[a,b]内有多少个数满足f(n)=n*n+n+41是素数。
题解:预处理除前缀和,直接求
#include
#include
#include
#include
#include
#include
#include
#define N 10010
using namespace std;
int n;
int s[N];
bool ok(int x) {...
分类:
其他好文 时间:
2015-06-18 09:41:59
阅读次数:
135
去官网下载http://enterprisedt.com/ .netftp组件目前最新版本为2.2.3,下载后在bin目录中找到edtFTPnet.dll,在项目中添加引用。using EnterpriseDT.Net.Ftp;public partial class test_ftp : Syst...
分类:
数据库 时间:
2015-06-18 09:29:53
阅读次数:
160
本文主要讲述WinForm开发应用程序需要设置自启动功能,这个也是在实际开发中经常涉及到的,非常实用,所讲到的是通过注册表来控制程序是否自行启动,具体功能实现上两张图,更直观。
如下图:程序设置保持界面实现代码using Microsoft.Win32;
using System;
using System.Collections.Generic;
using System.ComponentMo...
Delegate作用我就不多说了,Unity中可以直接使用EventHandler实现事件委托,咱们直接事例吧。一、场景物体移动结束后事件监听假如PlayerControl,移动结束后触发MoveComplete事件。using UnityEngine;
using System.Collections;
using System;public class PlayerControl : MonoB...
分类:
编程语言 时间:
2015-06-17 23:25:07
阅读次数:
202
题意:给出n个岛,每个岛都有桥到达其他岛,且桥数可多可少(即使两岛有多桥),判断是否是欧拉路(即每条桥只能走一次,所有桥都能遍历1遍)。思路:满足如下条件之一者即为欧拉路:1、连通图,每个岛的度数为偶数。2、连通图,其中两个岛的度比为奇数。 1 #include 2 using namespace....
分类:
其他好文 时间:
2015-06-17 23:22:46
阅读次数:
174
题意:提供一个图,要求找出欧拉路的路径(任意合法的路径均可,保证图肯定有欧拉路)。思路:深搜的过程中删除遍历过的边,并在回溯时打印出来。在深搜时会形成多个环路,每个环都有一个或多个结点与其他环相扣,这样就可以产生欧拉路。 1 #include 2 using namespace std; 3 co....
分类:
其他好文 时间:
2015-06-17 23:15:55
阅读次数:
210