摘要: 一、DescriptionAs part of an arithmetic competency program, your students will be given randomly generated lists of from 2 to 15 unique positive integer... 阅读全文
posted @ 2013-07-22 19:00 InkGenius 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionSuppose you are reading byte streams from any device, representing IP addresses. Your task is to convert a 32 characters long sequence of... 阅读全文
posted @ 2013-07-22 17:58 InkGenius 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionA simple mathematical formula for e is e=Σ0<=i<=n1/i!where n is allowed to go to infinity. This can actually yield very accurate approxim... 阅读全文
posted @ 2013-07-22 17:05 InkGenius 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionEva的家庭作业里有很多数列填空练习。填空练习的要求是:已知数列的前四项,填出第五项。因为已经知道这些数列只可能是等差或等比数列,她决定写一个程序来完成这些练习。Input第一行是数列的数目t(0 <= t <= 20)。以下每行均包含四个整数,表示数列的前四项。约定数列的... 阅读全文
posted @ 2013-07-22 16:27 InkGenius 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionBill and Ted are taking a road trip. But the odometer in their car is broken, so they don't know how many miles they have driven. Fortuna... 阅读全文
posted @ 2013-07-22 16:05 InkGenius 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 一、DescriptionIn 1949 the Indian mathematician D.R. Kaprekar discovered a class of numbers called self-numbers. For any positive integer n, define d(n)... 阅读全文
posted @ 2013-07-22 11:34 InkGenius 阅读(175) 评论(0) 推荐(0) 编辑