摘要:
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.简单的字符转化,将读取的字符每一位转化为对应数字,再计算。时间:58ms代码如下:cla... 阅读全文
摘要:
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.将不同罗马字符和对应的数字做成字典,然后将依次转化。时间:55ms代码如下:class ... 阅读全文
摘要:
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ... 阅读全文