上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 50 下一页
摘要: Desciption Consider a set of n points in a 2-D plane with integer coordinates. There are various ways of measuring distance between two points such as 阅读全文
posted @ 2018-07-16 07:58 霜雪千年 阅读(254) 评论(0) 推荐(0) 编辑
摘要: Description Computing the exact number of ways that N things can be taken M at a time can be a great challenge when N and/or M become very large. Chal 阅读全文
posted @ 2018-07-16 07:52 霜雪千年 阅读(485) 评论(0) 推荐(0) 编辑
摘要: Description In how many ways can you choose k elements out of n elements, not taking order into account? Write a program to compute this number. Input 阅读全文
posted @ 2018-07-16 07:48 霜雪千年 阅读(355) 评论(0) 推荐(0) 编辑
摘要: Description There are N kangaroos going out to eat at an Indian restaurant. The ith kangaroo wants to eat exactly xi food. The kangaroos all want to o 阅读全文
posted @ 2018-07-16 07:38 霜雪千年 阅读(283) 评论(0) 推荐(0) 编辑
摘要: Description An ascending sorted sequence of distinct values is one in which some form of a less-than operator is used to order the elements from small 阅读全文
posted @ 2018-07-16 01:10 霜雪千年 阅读(293) 评论(0) 推荐(0) 编辑
摘要: Problem Description 众所周知,度度熊喜欢各类体育活动。今天,它终于当上了梦寐以求的体育课老师。第一次课上,它发现一个有趣的事情。在上课之前,所有同学要排成一列, 假设最开始每个人有一个唯一的ID,从1到N,在排好队之后,每个同学会找出包括自己在内的前方所有同学的最小ID,作为自己 阅读全文
posted @ 2018-07-15 13:43 霜雪千年 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Description You are given an undirected graph consisting of n vertices and m edges. Your task is to find the number of connected components which are 阅读全文
posted @ 2018-07-15 13:30 霜雪千年 阅读(265) 评论(0) 推荐(0) 编辑
摘要: Description The GCD of two positive integers is the largest integer that divides both the integers without any remainder. The LCM of two positive inte 阅读全文
posted @ 2018-07-14 07:59 霜雪千年 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Description Let’s play a stone removing game. Initially, n stones are arranged on a circle and numbered 1, …, n clockwise (Figure 1). You are also giv 阅读全文
posted @ 2018-07-14 00:23 霜雪千年 阅读(434) 评论(0) 推荐(0) 编辑
摘要: Description Recently you must have experienced that when too many people use the BBS simultaneously, the net becomes very, very slow.To put an end to 阅读全文
posted @ 2018-07-13 23:39 霜雪千年 阅读(405) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 50 下一页