C语言训练-排序问题<2> (C++代码) 摘要:解题思路:sort 自定义排序规则注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return…… 题解列表 2019年04月21日 0 点赞 0 评论 1158 浏览 评分:9.9
C语言训练-排序问题<1> (C++代码) 摘要:解题思路:sort 排序大法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a[4]; for(…… 题解列表 2019年04月21日 0 点赞 0 评论 888 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C++代码) 摘要:解题思路:直接看样例找规律注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,i; cin>>n…… 题解列表 2019年04月21日 0 点赞 0 评论 916 浏览 评分:0.0
C语言训练-大、小写问题 (C++代码) 摘要:解题思路:简单的大小写转换注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char str[120]; …… 题解列表 2019年04月21日 0 点赞 0 评论 1615 浏览 评分:0.0
C语言训练-列出最简真分数序列* (C++代码) 摘要:解题思路:注意格式就ok注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ for(int i = 1;i < 4…… 题解列表 2019年04月21日 0 点赞 0 评论 1016 浏览 评分:0.0
C语言训练-亲密数 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int sum1,sum2; int A,i,j; for(A=1;…… 题解列表 2019年04月21日 0 点赞 0 评论 1094 浏览 评分:0.0
[编程入门]Sn的公式求和 (C++代码) 解题思路:由题目的式子可以知道,我们可以把和看作是每一次每位数之和,例如第一次是n*2,第二次加上(n-1)*(2*10)......所以我们可以设置一个变量a=2,令其每次自乘10即可。注意事项:while循环的作用只是控制循环次数,每一次循环判断过后,需要乘以n--后的(n+1)。 题解列表 2019年04月21日 0 点赞 0 评论 2086 浏览 评分:5.2
C语言考试练习题_保留字母 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(int argc, cha…… 题解列表 2019年04月20日 0 点赞 0 评论 1814 浏览 评分:0.0
优质题解 剔除相关数 (C++代码) 摘要:解题思路: 简要思路:概括 1,先写一个判断两个数是否为相关数的函数,这个简单,就是定义两个数组并赋初值为0,然后把传入函数的数字的每一位数字进行判断,等于n就给数组a[n]…… 题解列表 2019年04月20日 0 点赞 0 评论 1770 浏览 评分:0.0
假币问题 (C++代码) 摘要:解题思路: 任意数量的钱,不管怎么分到最后到应该以3作为分组依据,已达到最简运算。注意事项:参考代码:#include<iostream> using namespace std; …… 题解列表 2019年04月20日 0 点赞 0 评论 1926 浏览 评分:0.0