http://www.howtoforge.com/apache2-how-to-redirect-users-to-mobile-or-normal-web-site-based-on-device-using-mod_rewriteApache2:
How To Redirect Users T...
分类:
Web程序 时间:
2014-05-21 22:53:20
阅读次数:
432
问题 G: 数字的个数时间限制: 1 Sec内存限制: 128 MB提交: 78解决:
3[提交][状态][讨论版]题目描述输入两个正整数a,b(1=using namespace std;int fun(int a,int d){ int
cnt=0,factor=1,CurrNum=0,L...
分类:
其他好文 时间:
2014-05-21 22:38:00
阅读次数:
255
创建好一个Windows
Forms程序,在创建好的程序中Form1添加一个Panel控件如图:然后再程序中添加一个用户控件添加好以后再目录看见就是创建好了,然后在用户控件随便拉几个按钮(为了主函数加载的时候显示效果)然后再主函数的
Form1_Load先在命名空间加上 :using UserCon...
using System.Data.SqlClient;static void
Main(string[] args) { string connString = @"Data Source=.; Initial
Catalog=lh0216; User ID=s...
分类:
数据库 时间:
2014-05-21 21:37:07
阅读次数:
369
大体题意: 先输入试验次数num,再输入三个字符串A,B,C,判断C可否由A,B按照某种次序组成。如下图。
#include
#include
using namespace std;
#define MAX_SIZE 205
char A[MAX_SIZE];
char B[MAX_SIZE];
char C[2 * MAX_SIZE];
bool...
分类:
其他好文 时间:
2014-05-21 16:05:09
阅读次数:
209
题目:
链接:点击打开链接
题意:
给出n个直接认识的朋友,最大的直接或间接认识的朋友。
思路:
算法:
并查集,,,
代码:
#include
#include
#include
using namespace std;
#define MAXN 100010
int root[MAXN];
int member[MAXN];//表示在i结点处的,认识的...
分类:
其他好文 时间:
2014-05-21 10:59:57
阅读次数:
254
SOl:将原题改为枚举N的每一对因子,计算其是否互素即可。
#include
#include
#include
using namespace std;
inline int gcd(int a,int b)
{
return b==0?a:gcd(b,a%b);
}
int main()
{
int n,T,i,j;
scanf("%d",&T);
while(T...
分类:
其他好文 时间:
2014-05-21 07:07:00
阅读次数:
273
一张图上分布着n台坏了的电脑,并知道它们的坐标。两台修好的电脑如果距离
#include
#include
#include
#include
#include
#include
const int MAXN=111111;
const int MAX_N=111111;
int n,d;
using namespace std;
struct po
{
int x,y;
boo...
分类:
Web程序 时间:
2014-05-21 06:29:47
阅读次数:
418
一:上图二:代码主界面代码using System;using
System.Collections.Generic;using System.ComponentModel;using System.Data;using
System.Drawing;using System.Linq;using ...
using System.Data.SqlClient;static void
Main(string[] args) { string connString = @"Data Source=.; Initial
Catalog=lh0216; User ID=s...
分类:
数据库 时间:
2014-05-21 04:18:08
阅读次数:
388