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
时间限制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
题目: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
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
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
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
题目: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的个数比如: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)时间限制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(转)