【c++】蛇形矩阵简单易懂 摘要:解题思路:本蒟蒻想到了先建立出一个不少于100x100的蛇形矩阵保存,在根据用户所输入的行列数进行输出。注意事项:输出的行列数参考代码:#include <iostream>#include <bit…… 题解列表 2023年06月21日 0 点赞 0 评论 368 浏览 评分:9.3
题目 1378: C hicken and rabbit s题解 摘要:1.解题思路注意鸡的腿数和兔的腿数都是偶数,不可能共有奇数条腿,所以当m%2==1时,输出0 0.否则,最多只动物时,全都是鸡,输出m/2;最少只动物时,全都是兔,输出celi(m/4).2.参考代码…… 题解列表 2023年06月21日 0 点赞 0 评论 160 浏览 评分:9.9
蓝桥杯算法提高VIP-盾神与砝码称重 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#define maxlen 28int n, m;int fm[maxlen]; int…… 题解列表 2023年06月19日 0 点赞 0 评论 384 浏览 评分:0.0
2种递归写法 摘要:解题思路: #include <bits/stdc++.h>using namespace std;int pd(int m){ if(m<=0) return 0; if(m==1) r…… 题解列表 2023年06月19日 1 点赞 0 评论 208 浏览 评分:0.0
哇靠送分题*2 摘要:解题思路:思考注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; while(cin>>a>>b>…… 题解列表 2023年06月19日 0 点赞 0 评论 608 浏览 评分:0.0
哇靠送分题 摘要:解题思路:注意事项:小小的改一下题目参考代码:#include<iostream>using namespace std;int main(){ int a,b,c; while(cin>…… 题解列表 2023年06月19日 0 点赞 0 评论 614 浏览 评分:0.0
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ int num = 0; int tem…… 题解列表 2023年06月18日 0 点赞 0 评论 129 浏览 评分:0.0
a+b的最简方法 摘要:/这题是一道非常经典的题目,是编程初学者的必会题。(大佬请屏蔽)//首先头文件、名字空间我就不说了,这是得会背的内容,如下:#include<bits/stdc++.h>//这是一个万能头文件,可以背…… 题解列表 2023年06月18日 1 点赞 1 评论 346 浏览 评分:9.9
二级编程,分段函数, 摘要:解题思路:注意事项:记得加头文件,更改数据类型参考代码:#include<iostream>#include <cmath>//头文件,必加 #include <iomanip>//同上using n…… 题解列表 2023年06月18日 0 点赞 0 评论 220 浏览 评分:6.0
利润计算,c++求解 ,if,elseif双分支解题 摘要:解题思路:注意事项:可能编译时会显示出错,尝试运行,若还错请将有y(x)函数并入main参考代码:#include<iostream>using namespace std;int y(int x)/…… 题解列表 2023年06月18日 0 点赞 0 评论 303 浏览 评分:0.0