码迷,mamicode.com
首页 > 其他好文
ZOJ1241
这道题的格式确实有点恶心。题目的意思就是然给你判断是否能构成直角三角形,-1代表未知的边。。下面是代码。 #include #include int main() { double a,b,c; int wbx=1; while(scanf("%lf %lf %lf",&a,&b,&c)!=EOF) { if(a==0 &&b==0 &&c==0) { break...
分类:其他好文   时间:2014-12-05 15:36:49    阅读次数:158
【LeetCode】Merge Intervals
题目 Given a collection of intervals, merge all overlapping intervals. For example, Given [1,3],[2,6],[8,10],[15,18], return [1,6],[8,10],[15,18]. 解答 先对间隔段按起点由小到大排序(起点相同按终点排),那么问题来了,如何对对象进行排...
分类:其他好文   时间:2014-12-05 15:36:17    阅读次数:233
【BZOJ 2243】 [SDOI2011]染色
【BZOJ 2243】 [SDOI2011]染色 树链剖分+线段树标记传递~...
分类:其他好文   时间:2014-12-05 15:33:33    阅读次数:329
关于ActionBar 详解
我的评论是(太尼玛 精彩了,不好意思粗鲁了 ,谢谢)            转载:guolin           地址连接:http://blog.csdn.net/guolin_blog/article/details/18234477...
分类:其他好文   时间:2014-12-05 15:34:38    阅读次数:112
UVA 399 The Falling Leaves(二叉树)
The Falling Leaves  Each year, fall in the North Central region is accompanied by the brilliant colors of the leaves on the trees, followed quickly by the falling leaves accumulating under ...
分类:其他好文   时间:2014-12-05 15:32:49    阅读次数:163
任意次方后的最后三位数
编程求一个整数任意次方后的最后三位数。 #include main() { int i,x,y,z; z=1; printf("请输入x、y:"); scanf("%d%d",&x,&y);         for(i=0;i { z=z*x%1000;//这里采用取余的方法求一个数任意次方后的后三位 }       if(z>100) printf("最后三位是:%d...
分类:其他好文   时间:2014-12-05 15:32:45    阅读次数:178
Project configuration is not up-to-date with pom.xml
导入maven工程后,出现如下错误:   Description    Resource    Path    Location    Type Project configuration is not up-to-date with pom.xml. Run project configuration update    rdc        line 1    Maven Con...
分类:其他好文   时间:2014-12-05 15:32:06    阅读次数:133
Debian 下 Vbox 只显示 32 位系统
在Debian下安装完Vbox,结果创建虚拟机,发现只有32 bit的version。 如下图:   实际上,操作系统和Vbox 的安装包,装的都是64 bit。root@dave:/usr/bin# uname -aLinux dave 3.2.0-4-amd64 #1 SMP Debian3.2.63-2 x86_64 GNU/Linu...
分类:其他好文   时间:2014-12-05 15:34:35    阅读次数:218
LeetCode Count and Say 解题报告
LeetCode Count and Say 解题报告 如何数(shu 三声) 数(shu 四声):1,11,21,1211,111221,312211,13112221,1113213211...
分类:其他好文   时间:2014-12-05 15:33:13    阅读次数:121
VideoView控件可以手动改变大小
让VideoView可以手动的设置长宽 /** * The CustomVideoView is to make videoView view length-width based on the parameters you set to decide. * @author peter. * */ public class CustomVideoView extends VideoVie...
分类:其他好文   时间:2014-12-05 15:33:06    阅读次数:164
ZOJ 1078
题目的意思大概是给你一个数,让你判断这个数转为2到16进制的数是否为回文数,如果是的话直接输出转的进制数。。果然基础差的不行,各种错误,写了40多分钟,最后格式还错了两遍。!!直接上代码吧。 #include int main() { int n,i,j,l,p,sum,pp,k,m,ppppp; int a[1000],b[1000]; while(scanf("%d",&n)...
分类:其他好文   时间:2014-12-05 15:29:55    阅读次数:178
【LeetCode】Insert Interval
题目 Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were initially sorted according to their start tim...
分类:其他好文   时间:2014-12-05 15:30:44    阅读次数:207
fdsfff
dsfdsg
分类:其他好文   时间:2014-12-05 15:30:58    阅读次数:254
easyui dategrid 操作示例
Datagrid数据绑定说明:datagrid为页面中使用到的一个datagrid的实例:vardatagrid;vareditRow=undefined;//定义当前正在编辑的行varselectRow=undefined;//当前选择行$(function(){datagrid=$('#tabI...
分类:其他好文   时间:2014-12-05 15:31:41    阅读次数:911
Struts2 设置返回参数的四种方法
四种方法设置返回时的参数(一)import java.util.Map;import com.opensymphony.xwork2.ActionContext;import com.opensymphony.xwork2.ActionSupport;public class LoginAction...
分类:其他好文   时间:2014-12-05 15:28:41    阅读次数:189
strstr and strpos
啥也不说 直接上代码:';$user = strstr($email, '@', true); // 从 PHP 5.3.0 起echo $user; // 打印 nameecho '';$user = strpos($email, '@'); // 从 PHP 5.3.0 起echo $user;...
分类:其他好文   时间:2014-12-05 15:29:37    阅读次数:167
工程师的自我突破
前言第一次写非技术分享的话题,而促使我提笔的动力源自去巴黎参加Openstack Kilo Design Summit大会之行,因为我从外国工程师的身上深深感受到了他们对于技术的执着。在本文中,我想探讨的是如何实现工程师的自我突破,因为初入茅庐的工程师更关心的是如何从一个菜鸟成长为某个领域的专家。那...
分类:其他好文   时间:2014-12-05 15:29:05    阅读次数:211
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!