3008: 班长用班费买笔 摘要:解题思路:尽量买四元的笔剩1元,则4元钱的笔少买1支,换成1支5元笔;剩2元,则4元钱的笔少买1支,换成1支6元笔;剩3元,则4元钱的笔少买2支,换成1支5元笔和1支6元笔;注意事项:参考代码:#in…… 题解列表 2024年11月24日 4 点赞 0 评论 251 浏览 评分:10.0
2749: Hello, World!题解 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ cout << "Hello world!" << endl; return …… 题解列表 2024年11月24日 2 点赞 0 评论 745 浏览 评分:10.0
数字金字塔,记忆化dfs,点进来吧万一就看懂了呢 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int r, sss; // r表示三角形的行数,ss…… 题解列表 2024年11月23日 0 点赞 0 评论 210 浏览 评分:0.0
2950: 素数回文数的个数 摘要:```c #include using namespace std; const int maxn=2000010; int prime[maxn]; void judge_prime(in…… 题解列表 2024年11月23日 0 点赞 0 评论 178 浏览 评分:0.0
结构体链表,超清晰思路 #1676: 数据结构-链表的基本操作(C++) 摘要:**数据量很大时要使用C语言的输入输出,这道题如果用cin,cout很可能超时** ``` #include #include typedef struct lNode { int d…… 题解列表 2024年11月23日 2 点赞 0 评论 268 浏览 评分:0.0
自定义函数求一元二次方程 摘要:#include<bits/stdc++.h> using namespace std; int main() { double a,b,c,x1,x2;cin>>a>>b>>c; …… 题解列表 2024年11月23日 2 点赞 0 评论 1074 浏览 评分:10.0
均分纸牌,唉,反正也没人看 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个大小为10005的整数数组a int a[10005]; …… 题解列表 2024年11月23日 0 点赞 0 评论 160 浏览 评分:0.0
结构体实现链表,遍历求和 #1585: 蓝桥杯算法训练VIP-链表数据求和操作 (C++) 摘要:``` #include #include int res1, res2; typedef struct lNode { int num1, num2; struct lN…… 题解列表 2024年11月23日 0 点赞 0 评论 148 浏览 评分:0.0
LETTERS 搜搜搜搜搜搜 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量r和s,kkk初始化为-1 int r, s, kkk …… 题解列表 2024年11月23日 0 点赞 0 评论 333 浏览 评分:0.0
数的计数(Noip2001) 记忆化 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义一个全局数组kkk,用于存储中间计算结果 int kkk[110…… 题解列表 2024年11月23日 0 点赞 0 评论 304 浏览 评分:0.0