public static void main(String[] args) { System.out.println(Integer.toBinaryString(60)); System.out.println(Integer.toHexString(60));}
分类:
编程语言 时间:
2015-01-23 20:02:17
阅读次数:
191
Excel Sheet Column Title2015.1.23 17:20Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -...
分类:
其他好文 时间:
2015-01-23 19:49:35
阅读次数:
144
https://oj.leetcode.com/problems/string-to-integer-atoi/Implementatoito convert a string to an integer.Hint:Carefully consider all possible input case...
分类:
其他好文 时间:
2015-01-23 09:28:46
阅读次数:
167
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
题意:讲罗马数字转换成阿拉伯数字
思路:了解罗马数字的构造后,从后往前处理就行了
class Solution {
public:
int romanToInt(s...
分类:
其他好文 时间:
2015-01-23 00:54:13
阅读次数:
207
最近玩了个游戏,界面大概如下:321112233玩法介绍:从图上的任意值为1的开始走,每个点只能走一遍,只能向上下左右四个方向,不能跳格,走完所有点算赢,这个是个简单的界面,复杂的就是行和列为9*9的矩阵,或者更多下面给出解法:Option ExplicitDim arr() As Integer,...
分类:
其他好文 时间:
2015-01-22 20:04:54
阅读次数:
206
1 /** 2 * @method 图片等比缩放 3 * @param string $srcImage 源图片路径 4 * @param string $toFile 目标图片路径 5 * @param integer $maxWidth ...
分类:
Web程序 时间:
2015-01-22 19:44:36
阅读次数:
199
在sv中用$bitstorealshort()函数可以轻松的将十六进制,二进制数转化成单精度浮点数,以下为源代码,在modelsim10.1c中测试通过,文件需要保存为.sv文件
module h2f;
integer fid_rd;
integer fid_wr;
// integer fid_mif;
bit [11:0] variable=0;
bit [31:0] va...
分类:
其他好文 时间:
2015-01-22 18:15:01
阅读次数:
772
Number Sequence
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 34582
Accepted: 9929
Description
A single positive integer i is given. Write a program to fin...
分类:
其他好文 时间:
2015-01-22 15:31:18
阅读次数:
109
【题目】
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
【分析】
这是一种首先会想到的思路:一个一个字母解析,先解析是不是双字母罗马数字,如果不是就按单字母罗马数字解析。
【代码】
/***********...
分类:
其他好文 时间:
2015-01-22 15:26:52
阅读次数:
134
这里用一个实例来演示PostgreSQL存储过程如何返回数据集。1 首先准备数据表//member_categorycreate table member_category(id serial, name text, discount_rate real, base_integral integer...
分类:
数据库 时间:
2015-01-22 11:01:20
阅读次数:
183