Guess the number
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 3035 Accepted Submission(s): 2281
Problem Description
Happy new yea...
分类:
其他好文 时间:
2015-04-06 15:50:26
阅读次数:
174
#include void bubble_sort(long [], long);int main(){ long array[100], n, c, d, swap; printf("Enter number of elements\n"); scanf("%ld", &n); print...
分类:
编程语言 时间:
2015-04-06 15:41:42
阅读次数:
135
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2015-04-06 15:30:40
阅读次数:
107
Given an integer array, find a subarray where the sum of numbers is zero. Your code should return the index of the first number and the index of the l...
分类:
其他好文 时间:
2015-04-06 14:05:45
阅读次数:
116
题目链接:https://leetcode.com/problems/single-number-ii/题意表明有一个数字出现了一次,其他数字出现了三次,那么实现一个模3的计数器即可。 1 class Solution 2 { 3 public: 4 int singleNumber(int...
分类:
其他好文 时间:
2015-04-06 12:49:26
阅读次数:
152
Mathmen
Time Limit: 1000MS Memory limit: 65536K
题目描述
Mathmen
love mathematics, and they live on the number line. All the mathmen
spend all their time on solving mathematical pro...
分类:
其他好文 时间:
2015-04-06 11:28:56
阅读次数:
176
先看u-boot的机器码和linux的机器码是在什么地方决定的。1、 u-boot的机器码是在u-boot的board/fs2410/fs2410.c文件里决定的: /* arch number of SMDK2410-Board */gd->bd->bi_arch_number =MACH_TYP...
分类:
系统相关 时间:
2015-04-06 11:19:09
阅读次数:
243
zoj 3202 Second-price Auction
水题,不解释了,直接贴代码
#include
#include
#include
#include
using namespace std;
struct node{
int x;
int y;
};
struct node number[105];
int cmp(struct node a,struct node b){...
分类:
其他好文 时间:
2015-04-06 01:08:18
阅读次数:
231
Pre x goodness of a set string is length of longest common pre x*number of strings in the set. For
example the pre x goodness of the set f000,001,0011g is 6.You are given a set of binary strings. Fin...
分类:
其他好文 时间:
2015-04-06 01:07:22
阅读次数:
178
Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which rep...
分类:
其他好文 时间:
2015-04-06 00:54:29
阅读次数:
189