木其网络科技专业程序员代写http://www.xmsydw.com
程序员学历擅长经验网店链接
apenny硕士ASP.NET PHP 电子 通信设计 图像 编程 网络5年进入店铺
zheng_qianqian本科C语言 C++面向对象 Java3年进入店铺
guoguanl本科Java Web项目 JSP Hibernate Struts Mysql4年进入店铺
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 55 下一页
摘要: 转自:http://blog.sina.com.cn/s/blog_8f06da990101252l.htmlGreen HackenbushHackenbush游戏是通过移除一个有根图的某些边,直到没有与地板的相连的边。地板用虚线来表示,其中移除某一条边的时候,那条边以上所连着的所有边都会移除,就像砍树枝那样,树枝以上的部分也会被移除。在这节中,我们讨论这个游戏的公平版本,每个玩家在他的回合可以删除任意的边。这个版本叫做Green Hackenbush,每条边都是绿色的,下面我们简称GH游戏。这里还有一个不公平版本,叫做Blue-Red Hackenbush,有些边是蓝色,有些边是红色,而玩 阅读全文
posted @ 2013-06-02 20:27 C语言程序 阅读(438) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include using namespace std; const double eps=1e-6; typedef struct point3 { double x,y,z; point3(double x=0,double y=0,double z=0):x(x),y(y),z(z){} }vector3; struct face { point3 a,b,c,d; vector3 n; face(){} face(point3 a,point3 b,point3 c,point3 d,vector3 n):a(a),b... 阅读全文
posted @ 2013-06-01 19:41 C语言程序 阅读(195) 评论(0) 推荐(0) 编辑
摘要: // Time 15ms, Memory 228K#include #include using namespace std; int main() { int i,m,k; while(scanf("%d",&m) && m) { int ans=0; for(i=0;i<m;i++) { scanf("%d",&k); ans^=k; } if(ans) printf("Rabbit Win!\n"); else print... 阅读全文
posted @ 2013-05-30 11:18 C语言程序 阅读(134) 评论(0) 推荐(0) 编辑
摘要: //Time 0ms, Memory 228K#include #include #include using namespace std; int main() { int t,j,n,m,ans; while(scanf("%d%d",&n,&m)!=EOF) { ans=0; for(int i=0;i<n;i++) { scanf("%d%d",&t,&j); m=abs(t-j)-1; ans^=m; } if... 阅读全文
posted @ 2013-05-30 11:07 C语言程序 阅读(120) 评论(0) 推荐(0) 编辑
摘要: // Time 0ms, Memory 236K#include #include #include #include using namespace std; int fb[16],sg[1001],v[1001]; int mex(int x) { if(sg[x]!=-1) return sg[x]; int i; memset(v,0,sizeof(v)); for(i=1;i=0;i++) { sg[x-fb[i]]=mex(x-fb[i]); v[sg[x-fb[i]]]=1; } for(i=... 阅读全文
posted @ 2013-05-30 11:04 C语言程序 阅读(184) 评论(0) 推荐(0) 编辑
摘要: //Time 0ms, Memory 288K#include #include using namespace std; int mex(int s,int c) { int q=sqrt(s*1.0); while(q+q*q>=s) q--; if(q>n && n) { int ans=0; for(i=0;i>s>>c; ans^=mex(s,c); } cout<<"Case "<<t++<<":"<<endl; if(ans) cout<&l 阅读全文
posted @ 2013-05-29 21:53 C语言程序 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 问题:在纯ubuntu环境下工作,需要访问windows环境下搭建的服务器,没有ftp服务,就是可以通过IP地址直接访问目录的那种;解决办法:1. ubuntu的nautilus中选择File--->Connect to Server...,在窗口Connect to Server中,选择type为Windows share,在Server中输入需要访问的文件服务器的IP地址,点击Connect,成功连接。问题解决。 阅读全文
posted @ 2013-05-29 02:41 C语言程序 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 要求就是:1、将当前目录中的所有“子目录”的权限设置为755;2、将当前目录中的所有“文件”的权限设置为644。解决方法:chmod 644 -R *chmod 755 `find -type d`也可以用:用find彻底些find /path -type f -exec chmod 644 {} /;find /path -type d -exec chmod 755 {} /;在linux中的每一个文件或目录都包含有访问权限,这些访问权限决定了谁能访问和如何访问这些文件和目录。通过设定权限可以从以下三种访问方式限制访问权限:只允许用户自己访问;允许一个预先指定的用户组中的用户访问;允许系统 阅读全文
posted @ 2013-05-29 01:50 C语言程序 阅读(3398) 评论(0) 推荐(0) 编辑
摘要: 这题我先建了表来做的。可以进行两个操作:1、把其中一个数变为比它小的数;2、把其中一个数字0及其右边的所以数字删除。两人轮流进行操作,//Time 281ms, Memory 4140#include #include #include using namespace std; const int maxn=1000000; int sg[maxn]={0}; int len(int n) { if(n/100000) return 6; if(n/10000) return 5; if(n/1000) return 4; if(n/100) return 3;... 阅读全文
posted @ 2013-05-28 16:09 C语言程序 阅读(151) 评论(0) 推荐(0) 编辑
摘要: http://www.bo-ke-blog.net/2010/08/07/如何解决ubuntu下用wine报-cant-find-mfc42-dll-balabala问题/如何解决UBUNTU下用WINE报 “CAN’T FIND MFC42.DLL….BALABALA”问题错误原因:老winpe程序使用了mfc相关动态链接库,而新版的wine中不含此库,win用户可以通过安装 Microsoft Visual C++ Redistributable Package获取相关库ubuntu下获取此库方法:下载 winetricks:wget http://www.kegel.com/wine/w 阅读全文
posted @ 2013-05-28 09:11 C语言程序 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 55 下一页
木其网络科技专业程序员代写http://www.xmsydw.com
程序员学历擅长经验网店链接
apenny硕士ASP.NET PHP 电子 通信设计 图像 编程 网络5年进入店铺
zheng_qianqian本科C语言 C++面向对象 Java3年进入店铺
guoguanl本科Java Web项目 JSP Hibernate Struts Mysql4年进入店铺