摘要: 1060 爱丁顿数 (25分) https://pintia.cn/problem-sets/994805260223102976/problems/994805269312159744 1 #include <iostream> 2 #include <cmath> 3 #include <alg 阅读全文
posted @ 2020-01-20 20:07 yyer 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 算法实现: #include <iostream> using namespace std; int divisor(int a,int b); int ndivisor(int *a,int n); int multiple(int a,int b); int nmultiple(int *a,i 阅读全文
posted @ 2020-01-20 18:47 yyer 阅读(1932) 评论(0) 推荐(0) 编辑
摘要: 1062 最简分数 (20分) https://pintia.cn/problem-sets/994805260223102976/problems/994805268334886912 第一次提交:测试点1没过 测试点1的问题在于题目的输入的两个分数,没有说一定前面的比后面的小,所以在前面做了个判 阅读全文
posted @ 2020-01-20 18:44 yyer 阅读(307) 评论(0) 推荐(0) 编辑