上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 425 下一页
摘要: Description FJ has purchased N (1 #include #include using namespace std;int a[2005],dp[2005][2005];int main(){ int n,i,j,k,l,ans; while(~scanf("%d",&n)) { for(i = 1; i<=n; i++) scanf("%d",&a[i]); memset(dp,0,sizeof(dp)); for(i = 1; i<=n; i++) dp[i]... 阅读全文
posted @ 2013-08-04 20:37 坚固66 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 三个小函数getdiv(); 求因子 getsum(); 求平方和 change(); 转换成该进制 #include #include #include #include #include using namespace std;int n,m,cnt,ans,num;int di[555555];char str[111111];void getdiv() { int up = sqrt(n); cnt = 0; for(int i=1; i= 10) { str[num++] = t - 10 + 'A'; } else... 阅读全文
posted @ 2013-08-04 20:35 坚固66 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 拷贝构造函数必须以引用的形式传递(参数为引用值)。其原因如下:当一个对象以传递值的方式传一个函数的时候,拷贝构造函数自动的被调用来生成函数中的对象。如果一个对象是被传入自己的拷贝构造函数,它的拷贝构造函数将会被调用来拷贝这个对象这样复制才可以传入它自己的拷贝构造函数,这会导致无限循环直至 栈溢出(Stack Overflow)。除了当对象传入函数的时候被 隐式调用以外,拷贝构造函数在对象被函数返回的时候也同样的被调用。 阅读全文
posted @ 2013-08-04 20:33 坚固66 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 导读:朋友和我说能不能写点关于营销类的文章,方便提升对互联网营销的认知。互联网营销的定义,亦可(称为:网络营销On-line Marketing或E-Marketing)互联网营销就是以互联网为主要手段进行的,为达到一定营销目的的营销活动。 互联网营销则是一种概念化的营销理论,一切的核心思想围绕着以互联网为基础的市场里,市场中的交易营销概念就是互联网营销。电子商务时刻在做市场营销,市场营销服务于电子商务,他们有一个”中间件“,就是以互联网为基础。今天就说说,互联网时代的互联网营销的个人感悟。 据新闻报道,美国60%的企业都将网络营销作为产品营销的核心策略之一。比如,作为国际上个人电脑销售排名第 阅读全文
posted @ 2013-08-04 20:31 坚固66 阅读(309) 评论(0) 推荐(0) 编辑
摘要: 网上流传了很多安装插件的方法。在这里我只讲解一种方法.因为我认为这种方法有以下两个优点:第一、简单,方便安装;第二、对于自己安装的插件易于管理。我的myeclipse版本号为10.5,操作系统为win7 安装方法详细步骤:我的MyEclipse路径是:D:\MyEclipse10,下面不再重复。 从官网或其他地方下载所需安装插件的压缩包,我要安装Propedit,所以我从官网上下载了它的压缩包:jp.gr.java_conf.ussiy.app.propedit_5.3.3.zip。将下载的压缩包解压。得到两个目录,分别为:features和plugins(这两个目录里存放了安装插件的所必需的 阅读全文
posted @ 2013-08-04 20:30 坚固66 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 题意:在N*N的图中,找出孤立存在的十字架的个数。十字架要求为正十字,孤立表示组成十字架的‘#的周围的一格再无’#‘。dfs找出在中心的‘#’(周围四格也为‘#'),则缩小了搜索范围,再bfs找出是否是符合要求。#include #include #include #include #include using namespace std;char map[55][55];int n,cnt,head,tail,vis[55][55],center[55][55];int dirx[4] = {1,-1,0,0};int diry[4] = {0,0,1,-1};struct Queu 阅读全文
posted @ 2013-08-03 22:46 坚固66 阅读(202) 评论(0) 推荐(0) 编辑
摘要: import java.beans.BeanInfo; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.Map;import org.apache.commons.beanutils.BeanUtils; import 阅读全文
posted @ 2013-08-03 22:44 坚固66 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 问题:求1~r中有多少个数与n互素。 对于这个问题由容斥原理,我们有3种写法,其实效率差不多。分别是:dfs,队列数组,位运算。 先说说位运算吧:用二进制1,0来表示第几个素因子是否被用到,如m=3,三个因子是2,3,5,则i=3时二进制是011,表示第2、3个因子被用到 LL Solve(LL n,LL r){ vector p; for(LL i=2; i*i1) p.push_back(n); LL ans=0; for(LL msk=1; msk1) p.push_back(n);}void dfs(LL k,LL t,LL s,LL... 阅读全文
posted @ 2013-08-03 22:42 坚固66 阅读(620) 评论(0) 推荐(0) 编辑
摘要: Problem Description The Princess has been abducted by the BEelzebub feng5166, our hero Ignatius has to rescue our pretty Princess. Now he gets into feng5166's castle. The castle is a large labyrinth. To make the problem simply, we assume the labyrinth is a N*M two-dimensional array which left-to 阅读全文
posted @ 2013-08-03 22:40 坚固66 阅读(179) 评论(0) 推荐(0) 编辑
摘要: OverflowWrite a program that reads an expression consisting of twonon-negative integer and an operator. Determine if either integer orthe result of the expression is too large to be represented as a``normal'' signed integer (typeinteger if you are workingPascal, type int if you are working i 阅读全文
posted @ 2013-08-03 22:38 坚固66 阅读(107) 评论(0) 推荐(0) 编辑
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 425 下一页