码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
POJ 1201 Intervals
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
POJ 1426 Find The Multiple
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
POJ 3009 Curling 2.0
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
POJ 3083 Children of the Candy Corn
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
POJ 2488 A Knight's Journey
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 Integer
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
Palindrome Number
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
Integer to Roman
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
Roman to Integer
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
LeetCode第八题, String to Integer (atoi)
题目原文 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!