PS:最近工作比较忙,所以把以前在学校做acm的时候写的一些解题报告发出来
http://acm.sdibt.edu.cn/JudgeOnline/problem.php?id=2327
题目大意:(如题)
输入输出:(如题)
解题思路:从开始数后一个数往后枚举,然后判断其是不是循环数,如果是就输出退出。...
分类:
其他好文 时间:
2014-10-28 09:23:49
阅读次数:
231
Let's explore Go's built-in support for complex numbers via thecomplex64andcomplex128types. For cube roots, Newton's method amounts to repeating:Find ...
分类:
其他好文 时间:
2014-10-28 08:10:08
阅读次数:
184
Let's have some fun with functions.Implement afibonaccifunction that returns a function (a closure) that returns successive fibonacci numbers.package ...
分类:
其他好文 时间:
2014-10-28 00:37:06
阅读次数:
129
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-n...
分类:
其他好文 时间:
2014-10-28 00:23:08
阅读次数:
321
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-10-27 22:58:01
阅读次数:
269
Problem DescriptionThere are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).InputInput consists of a sequence o...
分类:
其他好文 时间:
2014-10-27 17:30:21
阅读次数:
151
Problem DescriptionThe highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at wh...
分类:
其他好文 时间:
2014-10-27 17:29:51
阅读次数:
170
Problem DescriptionIn many applications very large integers numbers arerequired. Some of these applications are using keys for secure transmission ofd...
分类:
其他好文 时间:
2014-10-27 17:20:34
阅读次数:
135
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.
For example, given the following triangle
[
[2],
[3,4],
...
分类:
其他好文 时间:
2014-10-27 15:36:28
阅读次数:
190
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:
其他好文 时间:
2014-10-26 21:10:30
阅读次数:
170