原题链接:https://oj.leetcode.com/problems/integer-to-roman/
这题也是简单题,重点是要维持一个罗马数字的数组,然后每位计算时候,则数组往后扫2位,使用同样的计算方式得出当前位的罗马表示。
class Solution {
public:
string intToRoman(int num) {
char ...
分类:
其他好文 时间:
2015-01-12 16:36:48
阅读次数:
170
REDIS是一个开源的、先进的键值存储系统。它通常可以被用作数据结构服务器,因为它的键可以包含字符串(string)、哈希值(hash)、列表(list)、集合(set)以及有序集合(sortedset)。而且Redis使用的是内存数据集合。根据你自身的使用情况,你可以定时将这些内存中的数据保存至磁盘中,或者将每个命令都添加至日志中。你可以通过redis的项目主页了解它的更多功能。Redis最初的...
分类:
其他好文 时间:
2015-01-12 16:34:42
阅读次数:
192
/// /// 获取指定表名的列名与描述注释 /// /// /// /// public static Hashtable GetTableFieldsDisFromMdb(string mdbFilePath,...
分类:
数据库 时间:
2015-01-12 16:23:42
阅读次数:
262
问题你想使用类似于CSS或jQuery的语法来查找和操作元素。方法可以使用Element.select(String selector) 和 Elements.select(String selector) 方法实现:File input = new File("/tmp/input.html");...
分类:
Web程序 时间:
2015-01-12 16:07:36
阅读次数:
221
private void GetFrames(string pPath, string pSavedPath) { DrawImage.Image gif = DrawImage.Image.FromFile(pPath); Imaging.FrameDim...
分类:
其他好文 时间:
2015-01-12 16:05:50
阅读次数:
711
谜题18:字符串奶酪
下面这个程序从一个字节序列创建一个字符串,然后迭代遍历字符串中的字符,并将它们作为数字打印。请描述程序打印的数字序列:
public class StringCheese{
public static void mian(String[] args){
byte bytes[] new byte[256];
for(int i = 0; i < ...
分类:
编程语言 时间:
2015-01-12 14:45:30
阅读次数:
157
public List getListScoreByJfEventId(Integer jfEventId){ List jfAuctionList=null; String hql ="select j.id,j.user,j.jfEvent,sum(j.score),j.status,j.cre...
分类:
其他好文 时间:
2015-01-12 14:39:32
阅读次数:
154
public int getMaxScoreByJfEventIdNumber(Integer jfEventId) { int numberValue=0; String hql = "from JfAuction where jfEvent.id =:jfEventId"; Finder fi....
分类:
其他好文 时间:
2015-01-12 14:37:53
阅读次数:
144
String hql ="select j from JfAuction j where 1=1 "; hql+=" and j.jfEvent.id ="; hql+=jfEventId; hql+=" order by j.score desc "; Query query = jfAucti....
分类:
其他好文 时间:
2015-01-12 14:32:46
阅读次数:
128