首页 > 2014年03月21日 > 全部分享
组队赛3解题报告:精度与二进制枚举
E题:ACM-ICPC Live Archive 6448 - Credit Card Payment Using credit cards for your purchases is convenient, but they have high interest rates if you do not pay your balance in full each month. The int...
分类:其他   时间:2014-03-21 23:30:04    收藏:0  评论:0  赞:0  阅读:617
iOS6.0下奇怪的_UIRecordArgumentOfInvocationAtIndex异常
遇到的问题: 以下两种定制化UIBarButtonItem的代码在iOS7下没有问题: [[UIBarButtonItem appearanceWhenContainedIn:[UINavigationBar class], nil] setTitleTextAttributes:@{NSForegroundColorAttributeName :[UIColor darkGrayColor]...
分类:移动平台   时间:2014-03-21 23:46:10    收藏:0  评论:0  赞:0  阅读:737
STL之空间配置器分析
本文主要讲解了SGI STL中容器空间配置的实现。 标准规范规定,STL空间配置器是一个名为allocator的模板类,同时也规定了它的必要接口,也就是说allocator类定义形式如 下。其中接口allocator::allocate(),allocator::deallocate(),allocator::construct,allocator::destory()这四个接口及其重要。所以...
分类:其他   时间:2014-03-21 23:30:58    收藏:0  评论:0  赞:0  阅读:539
java程序打包方法最强集合
前几天一个朋友拜托我写一个分析很多散点的程序。由于处理的点数量很大(上万),而且每个点的显示都涉及图片的旋转,所以我准备用java的swing来处理。好久没写过java客户端程序了,总结一下java客户端程序如何打包成jar和exe可执行文件。 一、用jar命令         要得到JAR包还能用Java自带的命令行式打包软件jar.exe(位于c:\jdk\bin目录),其打包命令...
分类:编程语言   时间:2014-03-21 23:56:35    收藏:0  评论:0  赞:0  阅读:781
How to use windows fonts in Linux WPS (kingsoft-office)
WPS (kingsoft-office) is one of the best office software in Linux. If you're still using LibreOffice, you must have a try! Of course free. An annoying problem is that you can't use some non-free font in Linux which are common and popular in Windows like ...
分类:Windows开发   时间:2014-03-21 23:45:14    收藏:0  评论:0  赞:0  阅读:819
linux scp 命令在两台主机之间文件传输
参考:http://www.cnblogs.com/hitwtx/archive/2011/11/16/2251254.html scp命令: 不同的linux电脑之间进行文件的copy有三种方法: 第一种:ftp,也就是其中一台Linux安装ftp Server,这样可以另外一台使用ftp的client程序来进行文件的copy。 第二种:采用samba服务,类似Windows文件copy...
分类:系统服务   时间:2014-03-21 23:32:55    收藏:0  评论:0  赞:0  阅读:1092
Linux下Qt学习——Qt Creator 安装与使用
从今天开始在linux使用qt creator编程,虽然以前也用过,但是已经网的差不多了。先从官网上下载Qt 5.2.1 for Linux 32-bit (371 MB),我的系统是32位,所以下载这个。官网是http://qt-project.org/downloads。这是一个运行文件,在linux下双击安装即可,这里我是安装在默认目录:/home/chen/.       安装完后,...
分类:系统服务   时间:2014-03-21 23:50:49    收藏:0  评论:0  赞:0  阅读:780
hdu_1147 Pick_up sticks
Stan has n sticks of various length. He throws them one at a time on the floor in a random way. After finishing throwing, Stan tries to find the top sticks, that is these sticks such that there is no ...
分类:其他   时间:2014-03-21 23:44:18    收藏:0  评论:0  赞:0  阅读:785
一个计算器的代码,只做注释
"""rapid_GUI program with pyqt,这本书的一些代码,整理一下,文字全部体现在注释里。""" from __future__ import division from PyQt4.QtCore import * from PyQt4.QtGui import * from math import * import sys class Form(...
分类:其他   时间:2014-03-21 23:41:25    收藏:0  评论:0  赞:0  阅读:677
AndroidManifest 属性解析以及 代码动态获取属性值
AndroidManifest.xml文件部分属性配置解析,以及如何在代码中获取指定配置值。 <application android:debuggable="fal...
分类:移动平台   时间:2014-03-21 23:53:44    收藏:0  评论:0  赞:0  阅读:958
hdu-4497-GCD and LCM-gcd的性质
lcm(x,y,z)=k; gcd(x,y,z)=t; 若:x=a*t;   y=b*t;       z=c*t; 则lcm(a,b,c)=k/t; 若k/t=2^A; 则a,b,c中至少有一个数为2^A,至少有一个数是2^0,另外一个数为2^(0~A);共6*A种情况。 则,若k/t=2^A*3^B*5^C; a,b,c的情况数为:(6*A)*(6*B)*(6*C); #inc...
分类:其他   时间:2014-03-21 23:36:45    收藏:0  评论:0  赞:0  阅读:515
Virtualbox 安装Ubuntu 无法全屏 解决办法
Virtualbox 安装Ubuntu后无法全屏解决: 需要Virtualbox的增强功能: 点击Virtualbox窗口上的《设备》按钮,选择《安装增强功能》,如下图: 之后桌面上会出现一个光驱图标,右击 选择 Open with Autorun Prompt ,然后输入权限密码,开始安装,结束后restart。 或者是 cd /medi...
分类:其他   时间:2014-03-21 23:42:22    收藏:0  评论:0  赞:0  阅读:793
Cocos2D-x游戏开发之屏幕触摸一:基本屏幕操作响应
今天我接着学习屏幕操作的响应事件。 Cocos2D-x的屏幕触摸主要有四个函数如下所示:        virtual void ccTouchesBegan(CCSet *pset,CCEvent *event); virtual void ccTouchesMoved(CCSet *pset,CCEvent *event); virtual void ccTouchesEnded(CC...
分类:其他   时间:2014-03-21 23:54:41    收藏:0  评论:0  赞:0  阅读:622
HDU 1676 Full Tank? 限制最短路(difficult)
点击打开链接 Full Tank? Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 155    Accepted Submission(s): 71 Problem Description After ...
分类:其他   时间:2014-03-21 23:48:57    收藏:0  评论:0  赞:0  阅读:638
hdu4628之状态压缩dp
Pieces Time Limit: 6000/3000 MS (Java/Others)    Memory Limit: 131072/131072 K (Java/Others) Total Submission(s): 1518    Accepted Submission(s): 788 Problem Description You heart broke in...
分类:其他   时间:2014-03-21 23:38:40    收藏:0  评论:0  赞:0  阅读:575
如何在Linux WPS(Kingsoft Office)中使用windows字体
WPS我就不多介绍了,老牌的国产office软件,近几年强势复出,又推出了原生Linux版,配合wine福昕简直是Linux下办公利器。 Chinese:  http://community.wps.cn/or http://linux.wps.cn/ English: http://wps-community.org/ 在Linux下金山不敢随随便便把一些非开源非免...
分类:Windows开发   时间:2014-03-21 23:59:25    收藏:0  评论:0  赞:0  阅读:869
HDU 1561 The more, The Better / 树形DP
树形DP 选m个节点权值加起来最大 因为可能是森林 就是都没有限制就可以选 去一个超级源点0 这样就是一棵树了 然后就是基础的树形DP了 DP方程很好想 也很好转移 #include #include #include using namespace std; const int maxn = 210; struct node { int v, w; }; vector G[max...
分类:其他   时间:2014-03-21 23:48:04    收藏:0  评论:0  赞:0  阅读:644
PAT: 1054. The Dominant Color (20)
The Dominant Color 浙大2013年机试试题 Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color with the largest proportional area is called the dominant color. A strictly...
分类:其他   时间:2014-03-21 23:51:47    收藏:0  评论:0  赞:0  阅读:764
LeetCode(一)关于GrayCode的实现
在LeetCode上面有一道题,是关于Gray Code的实现的。 GrayCode是这样一种编码: 1 位Gray Code : 0 12 位Gray Code: 先添加一个镜像,如下: 0 1 1 0然后,在原来的编码前面添加“0”,在镜像码前面添加“1”,如下: 00 01 11 10而从2位变化到3位的Gray Code的实现方式跟从1位变化到2位的过程是一样的, 都是先添加镜...
分类:其他   时间:2014-03-21 23:55:39    收藏:0  评论:0  赞:0  阅读:582
一个由两个长的如此相像的字引起的问题
一个由两个长的如此相像的字引起的问题...(禇、褚)......
分类:其他   时间:2014-03-21 23:29:04    收藏:0  评论:0  赞:0  阅读:650
996条   1 2 3 4 ... 50 下一页
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!