[编程入门]三个数最大值(c语言代码) 摘要:解题思路:使用两个if语句即可解答本题注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c,max; scanf("%d%d%d",&a,&b,&c); …… 题解列表 2022年08月12日 0 点赞 0 评论 377 浏览 评分:0.0
题解 1023: [编程入门]选择法排序 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[10],b; for(i=0; i<10; i++)//读取十个数 { …… 题解列表 2022年08月12日 0 点赞 0 评论 231 浏览 评分:0.0
矩阵对角求和 摘要:解题思路:1)矩阵使用二维数组num[][]来储存2)使用两个for循环输入数据3)主对角线的规律是i==j,副对角线的规律是i + j == 2注意事项:主副对角线的中间同时满足 i==j && i…… 题解列表 2022年08月12日 0 点赞 0 评论 342 浏览 评分:0.0
[编程入门]三个数最大值(c++代码) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,c,max; cin>>a>>b>>c; if(a>max) max=a;…… 题解列表 2022年08月12日 0 点赞 0 评论 1074 浏览 评分:0.0
c/c++方法 初学者思维 摘要:解题思路:注意事项:参考代码:void input() { char c; int letter = 0, space = 0, digit = 0, other = 0; while …… 题解列表 2022年08月12日 0 点赞 0 评论 508 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目(C++) 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main() { int m, n, i, cnt = 0; …… 题解列表 2022年08月12日 0 点赞 0 评论 387 浏览 评分:0.0
明明的随机数C++(随便写着玩,欢迎各大神指出错误,以便我日后改进) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int tong[100]={},n; …… 题解列表 2022年08月13日 0 点赞 0 评论 191 浏览 评分:0.0
十->二进制转换常规算法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int pa;while(cin>>pa){ //如何判断输…… 题解列表 2022年08月14日 0 点赞 0 评论 287 浏览 评分:0.0
[编程入门]猴子吃桃的问题 摘要:解题思路:逆向看问题。注意事项:今天算是第一天(如果到第十天要进行九次运算)参考代码:#include<stdio.h>int main(){ int n,i,g=1; scanf("%d…… 题解列表 2022年08月14日 0 点赞 0 评论 552 浏览 评分:0.0
C\C++就是求第二最大和的问题 耗时1 摘要:解题思路:是自己挑一部分数字求第二最大。所以如果全是负数那么最大就是什么都不挑。第二大就是0+最大的负数注意事项:没什么特别需要注意的想用c提交就把 &和const去掉参考代码:#include<st…… 题解列表 2022年08月14日 0 点赞 0 评论 363 浏览 评分:0.0