矩阵乘法--谦谦笔记 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int m, n;int a[30][30], b[30][30], c[30][30];in…… 题解列表 2022年03月06日 0 点赞 0 评论 349 浏览 评分:0.0
很多小东西,全部都要考虑周全,最大数和最小是 摘要: int n, m; int temp; while(scanf("%d %d",&n,&m) == 2){ if(n == 0 && m == 0){ break; } …… 题解列表 2022年03月06日 0 点赞 0 评论 334 浏览 评分:0.0
1094: 字符串的输入输出处理(Java) 摘要:解题思路:本题中要求前N行按照原来的输入字符串输出,包括空格。而N行以后要求空格或者回车分割输出。我们可以想到用Scanner中的next()方法和nextLine()方法。nextLine()方法可…… 题解列表 2022年03月06日 0 点赞 0 评论 398 浏览 评分:0.0
编写题解 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ int n,sum=1; …… 题解列表 2022年03月06日 0 点赞 0 评论 466 浏览 评分:9.9
看错题目,以为又是一个文本整个内容输入,他这个是一行一行输入的数据, 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> #include<stdlib.h> #include<ctype.h> in…… 题解列表 2022年03月06日 0 点赞 0 评论 284 浏览 评分:0.0
cpp简单易懂_超直观的解题思路-回文日期 摘要:不能一天一天枚举,否则会超时;转换一下思路,不必判断这一天是不是回文数,而是给出前四位数去构造后四位数从而得到回文数;这样就从一天一天枚举变成一年一年枚举,时间复杂度就降低了很多;构造好回文数后只需要…… 题解列表 2022年03月06日 0 点赞 1 评论 716 浏览 评分:8.0
编写题解 1019: [编程入门]自由下落的距离计算 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<iomanip>using namespace std;int main (){ …… 题解列表 2022年03月06日 0 点赞 0 评论 407 浏览 评分:0.0
2227: 蓝桥杯算法训练-2的次幂表示 摘要: #include #include #include void func(int m,int r) { if (m == 1) { switch …… 题解列表 2022年03月06日 0 点赞 0 评论 466 浏览 评分:0.0
编写题解 1018: [编程入门]有规律的数列求和--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<iostream>#include<iomanip>using namespace std;int main (){ …… 题解列表 2022年03月06日 0 点赞 0 评论 701 浏览 评分:0.0
二级C语言-求偶数和 摘要:解题思路:定义一个数组存放输入的数,再通过循环使偶数相加注意事项:参考代码:#include<stdio.h>int main(){ int a[100],sum=0,n,j=0; scanf("%d…… 题解列表 2022年03月06日 0 点赞 0 评论 351 浏览 评分:0.0