2226: [Spoj 5971] LCMSum Description Given n, calculate the sum LCM(1,n) + LCM(2,n) + .. + LCM(n,n), where LCM(i,n) denotes the Least Common Multiple ...
分类:
其他好文 时间:
2018-04-02 18:11:28
阅读次数:
206
贴源码: #coding= utf-8import mathclass Point: def move(self,x,y): self.x = x self.y = y def reset(self): self.move(0,0) def calculate_distance(self,other ...
分类:
其他好文 时间:
2018-03-28 18:44:38
阅读次数:
180
仓库:https://coding.net/u/librarian1/p/Calculate_Operations/git 目录 需求分析 功能设计 设计实现 算法详解 测试运行 代码展示 总结 展示PSP 1.需求分析 输入n,生成n道加减乘除 要求:数范围0~100 ,4 6个;运算符3~5个, ...
分类:
其他好文 时间:
2018-03-26 00:34:55
阅读次数:
152
任务1源码可直接克隆的仓库地址: (HTTPS)https://git.coding.net/zhaoliguaner/Calculate.git (SSH)git@git.coding.net:zhaoliguaner/Calculate.git 需求分析 使用JAVA编程语言,独立完成一个3到5 ...
分类:
其他好文 时间:
2018-03-24 20:36:54
阅读次数:
170
1.仓库地址:https://git.coding.net/FrrLolix/Calculate.git 2.需求分析: ①程序接受一个输入的参数n后,随机生成n道四则运算式,其中要保证生成的运算式的运算符在3-5个之间,同时程序对生成的运算式自动求解,结果和运算式一同输出到result.txt文件 ...
分类:
其他好文 时间:
2018-03-24 14:30:51
阅读次数:
178
github项目地址:https://github.com/18093258022/Calculate.git 一.需求分析 程序可接收一个输入参数n,然后随机产生n道加减乘除练习题,每个数字在 0 和 100 之间,运算符在3个到5个之间。 为了让小学生得到充分锻炼,每个练习题至少要包含2种运算符 ...
分类:
其他好文 时间:
2018-03-21 11:43:00
阅读次数:
187
Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For each case, output A + B in ...
分类:
其他好文 时间:
2018-03-18 17:15:45
阅读次数:
173
Problem Calculate a + b Input a and b a and b Output a + b a + b Example Notes Use + operator 题目大意 读入 a 和 b,输出 a + b。 题目解读 许多 OJ 的入门第一题,没啥好说的。 代码 1 s ...
分类:
其他好文 时间:
2018-03-11 00:26:33
阅读次数:
158
Discription Let's denote d(n) as the number of divisors of a positive integer n. You are given three integers a, b and c. Your task is to calculate th ...
分类:
其他好文 时间:
2018-03-08 23:00:59
阅读次数:
225
Problem Description Given a sequence 1,2,3,......N, your job is to calculate all the possible sub-sequences that the sum of the sub-sequence is M. Inp ...
分类:
其他好文 时间:
2018-03-05 18:18:12
阅读次数:
145