IntervalsTime Limit: 2000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:120164-bit integer IO format:%lld Java class name:MainY...
分类:
其他好文 时间:
2014-09-09 10:34:38
阅读次数:
163
Find The MultipleTime Limit: 1000msMemory Limit: 10000KBThis problem will be judged onPKU. Original ID:142664-bit integer IO format:%lld Java class na...
分类:
其他好文 时间:
2014-09-08 10:48:46
阅读次数:
246
Curling 2.0Time Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:300964-bit integer IO format:%lld Java class name:Mai...
分类:
其他好文 时间:
2014-09-08 10:44:16
阅读次数:
341
Children of the Candy CornTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:308364-bit integer IO format:%lld Java...
分类:
其他好文 时间:
2014-09-07 23:39:25
阅读次数:
275
A Knight's JourneyTime Limit: 1000msMemory Limit: 65536KBThis problem will be judged onPKU. Original ID:248864-bit integer IO format:%lld Java class n...
分类:
其他好文 时间:
2014-09-07 22:27:15
阅读次数:
386
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321思路: 1 class Solution { 2 public: 3 int reverse( int x ) {...
分类:
其他好文 时间:
2014-09-07 21:08:25
阅读次数:
235
Determine whether an integer is a palindrome. Do this without extra space.思路:先找出x的有效最高位,然后从两侧依次比较最高位和最低位即可。 1 class Solution { 2 public: 3 bool is...
分类:
其他好文 时间:
2014-09-07 20:57:25
阅读次数:
206
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.思路: 1 class Solution { 2 public: 3 strin...
分类:
其他好文 时间:
2014-09-07 17:13:15
阅读次数:
199
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.思路:从后往前遍历,如果某个数比其后一个数小,则减去该数;否则,加上该数。因为只存在Ⅳ(...
分类:
其他好文 时间:
2014-09-07 15:58:25
阅读次数:
242
题目原文
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, please do not see below and ask yourself what are the possible in...
分类:
其他好文 时间:
2014-09-07 11:03:05
阅读次数:
237