码迷,mamicode.com
首页 >  
搜索关键字:one    ( 27922个结果
1048. Find Coins (25)
Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou...
分类:其他好文   时间:2015-12-06 11:28:02    阅读次数:156
1008. Elevator (20)
时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThe highest building in our city has only one elevator. A request list is made up with N pos...
分类:其他好文   时间:2015-12-06 11:22:33    阅读次数:173
LeetCode - Add Digits
题目:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit.For example:Given num = 38, the process is like...
分类:其他好文   时间:2015-12-06 11:20:11    阅读次数:103
1045. Favorite Color Stripe (30)
LCS 最大公共子序列。 memset函数需要include 时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueEva is trying to make her own color stripe out of a given one...
分类:其他好文   时间:2015-12-06 11:18:32    阅读次数:142
136. Single Number (Bit)
Given an array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm should have a linear runtime complexi...
分类:其他好文   时间:2015-12-06 09:58:13    阅读次数:192
137. Single Number II (Bit)
Given an array of integers, every element appears three times except for one. Find that single one.Note:Your algorithm should have a linear runtime co...
分类:其他好文   时间:2015-12-06 09:55:12    阅读次数:136
268. Missing Number
题目:Given an array containingndistinct numbers taken from0, 1, 2, ..., n, find the one that is missing from the array.For example,Givennums=[0, 1, 3]re...
分类:其他好文   时间:2015-12-06 07:26:25    阅读次数:140
二进制数中1的个数
写一个函数返回参数二进制中1的个数比如:15000011114个1程序原型:intcount_one_bits(unsignedintvalue){//返回1的位数}方法一:(模除)缺点;未考虑十进制是负数的情况,例-1则bit=0 #include<stdio.h> #include<stdlib.h> intmain() { intcount=0; intnum=-..
分类:其他好文   时间:2015-12-06 02:03:46    阅读次数:147
1041. Be Unique (20)【水题】——PAT (Advanced Level) Practise
题目信息1041. Be Unique (20)时间限制100 ms 内存限制65536 kB 代码长度限制16000 BBeing unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bet...
分类:其他好文   时间:2015-12-06 01:50:22    阅读次数:188
微软:Xbox One也是一台Windows PC(转)
微软:Xbox One也是一台Windows PC(转)
分类:Windows程序   时间:2015-12-05 15:53:46    阅读次数:163
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!