假币问题 (C++代码) 摘要:解题思路: 任意数量的钱,不管怎么分到最后到应该以3作为分组依据,已达到最简运算。注意事项:参考代码:#include<iostream> using namespace std; …… 题解列表 2019年04月20日 0 点赞 0 评论 931 浏览 评分:0.0
优质题解 剔除相关数 (C++代码) 摘要:解题思路: 简要思路:概括 1,先写一个判断两个数是否为相关数的函数,这个简单,就是定义两个数组并赋初值为0,然后把传入函数的数字的每一位数字进行判断,等于n就给数组a[n]…… 题解列表 2019年04月20日 0 点赞 0 评论 1023 浏览 评分:0.0
[编程入门]二维数组的转置 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3]; for(i=0;i<3;i++) for(j=0;j<3;j++) sc…… 题解列表 2019年04月20日 0 点赞 0 评论 560 浏览 评分:0.0
偶数列举 (C语言代码)(题目描述有问题) 摘要:解题思路:这题题目描述有问题。注意事项:最后一个输出不要换行不然会错参考代码:#include<stdio.h>int main(){ int x,y,z; scanf("…… 题解列表 2019年04月20日 1 点赞 0 评论 532 浏览 评分:0.0
C语言训练-计算一个整数N的阶乘 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,n,s=1; scanf("%d",&n); if(n<=12) { for(i=1;i<=n;i…… 题解列表 2019年04月20日 0 点赞 0 评论 610 浏览 评分:0.0
C语言考试练习题_保留字母 (C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <bits/stdc++.h>using namespace std;int main(int argc, cha…… 题解列表 2019年04月20日 0 点赞 0 评论 1224 浏览 评分:0.0
[竞赛入门]简单的a+b (C语言代码) 摘要:解题思路:直接法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int print[4];void…… 题解列表 2019年04月20日 0 点赞 0 评论 813 浏览 评分:0.0
[编程入门]三个数最大值 (C语言代码) 摘要:解题思路:max = max(max,max)就可以了注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5…… 题解列表 2019年04月20日 0 点赞 0 评论 1472 浏览 评分:0.0
[编程入门]成绩评定 (C语言代码) 摘要:解题思路:for 嵌套 if else注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int pr…… 题解列表 2019年04月20日 0 点赞 0 评论 927 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 (C语言代码) 摘要:解题思路:辗转相除法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int a[5];int used[5];int print[4];vo…… 题解列表 2019年04月20日 0 点赞 0 评论 563 浏览 评分:0.0