栀子花开Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged onFZU. Original ID:192164-bit integer IO format:%I64d Java class name:Main这是一个栀...
分类:
其他好文 时间:
2015-04-18 23:21:15
阅读次数:
121
这段代码不是我写的,谢谢实验室的的师妹,接下来要把树形通信应用到求Pi上去。-module(my).
-export([main/1,temp/2,integer_to_atom/1,judge/3,ceil/1]).main(CoreNum) -> SumDie=temp(CoreNum,1),
Time=erlang:now(),...
分类:
其他好文 时间:
2015-04-18 22:07:25
阅读次数:
162
题目描述Write a function that takes an unsigned integer and returns the number of ’1’ bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11’ has binary representation 000000000...
分类:
其他好文 时间:
2015-04-18 22:02:38
阅读次数:
128
/* 题意:把阿拉伯数字转换成罗马数字 解法:直接暴力枚举了。*/class Solution {public: int power(int k){ int res = 1; for(int i = 0 ; i < k ; i++) res*=10; ...
分类:
其他好文 时间:
2015-04-18 21:50:49
阅读次数:
134
/* 题意:罗马数字转换成阿拉伯数字 解法:用map映射一下,判断当前字母是否比下一个小,是的话ans加上下一字母的值-当前字母的值, 否则的话直接加上当前字母的值。*/class Solution {public: int romanToInt(string s) { ...
分类:
其他好文 时间:
2015-04-18 21:50:36
阅读次数:
156
Roman to Integer
Given a roman numeral, convert it to an integer.
Input is guaranteed to be within the range from 1 to 3999.
解题思路:
罗马数字转化成数字。一种方法是映射法,每一位(阿拉伯数字)的字符到阿拉伯数字的映射。如下所示:
class Solu...
分类:
其他好文 时间:
2015-04-18 20:40:01
阅读次数:
167
PandaTime Limit: 4000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:404664-bit integer IO format:%I64d Java class name:MainWhen...
分类:
其他好文 时间:
2015-04-18 20:31:48
阅读次数:
182
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.Analyse: Be cautious abou the expression of ...
分类:
其他好文 时间:
2015-04-18 20:25:54
阅读次数:
116
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.首先,学习一下罗马数字,参考罗马数字罗马数字是最古老的数字表示方式,比阿拉伯数组早200...
分类:
其他好文 时间:
2015-04-18 20:21:32
阅读次数:
116
IOS使用SDWebImage出现下列类似警告的解决方案 CGBitmapContextCreate: unsupported parameter combination: 16 integer bits/component; 64 bits/pixel; 3-component color space; kCGImageAlphaPremultipliedF...
分类:
移动开发 时间:
2015-04-18 19:19:44
阅读次数:
146