1041 宏定义找最大数(使用三目运算符) 摘要:解题思路:注意事项:参考代码:#include#define zuidashu(a,b,c,max) a=a>b?a:b; max=a>c?a:c;void hanshu(float a,float …… 题解列表 2024年05月16日 0 点赞 0 评论 480 浏览 评分:9.9
1073: 弟弟的作业 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<string> # using namespace std; int main() { int a,…… 题解列表 2024年05月17日 1 点赞 0 评论 340 浏览 评分:9.9
深度优先搜索+栈区存储路线 摘要:解题思路:因为此题的地图大小只有5*5,数据量较小,因此我想也可以使用深度优先搜索枚举而且应该写起来也比宽度优先搜索简单。注意事项:只有输出的时候","后面还要加个空格。参考代码:/*最需要注意的是f…… 题解列表 2024年05月19日 0 点赞 0 评论 299 浏览 评分:9.9
和与乘积---详细注释 摘要:解题思路:见代码详细注释参考代码:#include<bits/stdc++.h> #define endl "\n" typedef long long ll ; using namespac…… 题解列表 2024年05月19日 0 点赞 0 评论 301 浏览 评分:9.9
1837: 蓝桥杯2015年第六届真题-机器人塔 C++代码 常规dfs爆搜 摘要:解题思路: m和n不大于500,即m+n <= 1000,所以最多不会超过50行。 定义dfs为 当前访问第i行第j个,需要输入的字符是c,由于定义是访问时输入,因此需要在…… 题解列表 2024年05月19日 1 点赞 0 评论 314 浏览 评分:9.9
铲雪车(snow) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll a,b…… 题解列表 2024年05月19日 0 点赞 0 评论 294 浏览 评分:9.9
用dijkstra优先队列 摘要:#include #define int long long #define endl '\n' using namespace std; typedef pair PII; const…… 题解列表 2024年05月20日 0 点赞 0 评论 409 浏览 评分:9.9
C语言训练-求1+2!+3!+...+N!的和 摘要:解题思路:先写出每一个数的阶乘的循环体;在加上一个求和即可;(新手小白)注意事项:必须用longlong参考代码:#include <stdio.h>long long fact(int n) { i…… 题解列表 2024年05月20日 0 点赞 0 评论 396 浏览 评分:9.9
蓝桥杯2022年第十三届省赛真题-纸张尺寸 摘要:解题思路:将十张纸的长宽用数组来存参考代码: #include <iostream>using namespace std;int main(int argc, char *argv[]){ int …… 题解列表 2024年05月21日 0 点赞 0 评论 686 浏览 评分:9.9
最长公共子序列 摘要:解题思路:从繁至简注意事项:c参考代码:#include <stdio.h>#include <string.h>int max(int a, int b) { if (a >= b) retu…… 题解列表 2024年05月22日 0 点赞 4 评论 506 浏览 评分:9.9