'hello world '的输出 摘要:解题思路:用cout语句来实现输出。注意事项:要注意输出内容是否与题目要求一致(如大小写,换行,‘*’个数。)参考代码:#include using namespace std; int main…… 题解列表 2023年05月28日 0 点赞 1 评论 146 浏览 评分:9.9
用vector容器写的 摘要:解题思路:原题链接:Hello,world!注意事项:熟悉vector的用法参考代码:#include<iostream>#include<vector>using namespace std;int…… 题解列表 2023年05月27日 0 点赞 0 评论 291 浏览 评分:9.9
C语言训练-邮票组合问题*(两种C++简单代码实现) 摘要:###### 题目已经给出了有四张3分的邮票和三张的5分的邮票 那么可以得到的 `3*i+5*j`种邮资 那么代码就非常的清晰明了 参考代码如下: ```cpp #include us…… 题解列表 2023年05月26日 0 点赞 0 评论 611 浏览 评分:9.0
#C++1672——迷宫问题(广搜) 摘要:注意:多组输入,记得重置相关变量,处理无终点情况ps:同类题------2177(终点和起点固定,输入单组) https://www.dotcpp.com/oj/problem2177.htmlAC…… 题解列表 2023年05月26日 0 点赞 0 评论 193 浏览 评分:5.0
1118:TOM数超简单字符数组算法 摘要:解题思路:字符数组,记得-‘0’将字符转换成数字注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <al…… 题解列表 2023年05月25日 0 点赞 0 评论 246 浏览 评分:0.0
优先队列100%易理解 摘要:解题思路:优先队列有自动排序功能,这里用最小优先队列(即卡牌数越少,在队列中排名越靠前),每次都从优先队列中拿出队头,使用一张万能牌,每次都判断该类牌的万能牌可使用量是否已经为零,如果为零,循环提前结…… 题解列表 2023年05月25日 0 点赞 3 评论 831 浏览 评分:7.3
2916: 谁考了第k名 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc…… 题解列表 2023年05月24日 0 点赞 0 评论 321 浏览 评分:9.9
2914: 铺地毯 摘要:解题思路:逆序查找注意事项:第一个遇到的就是最上层的参考代码:#include<iostream>using namespace std;int a[10001],b[10001],g[10001],…… 题解列表 2023年05月24日 0 点赞 0 评论 209 浏览 评分:6.0
2916: 谁考了第k名 (结构体+sort函数) 摘要:解题思路: 1.定义结构体 2.循环输入数据 3.sort排序 4.输出第k名注意事项:参考代码:#include <bits/stdc++.h> using namespace std; …… 题解列表 2023年05月23日 0 点赞 0 评论 220 浏览 评分:0.0
题目 1216: 成绩转换题解 摘要:参考代码:#include<iostream> using namespace std; int main(){ int score; while(cin>>score){ …… 题解列表 2023年05月23日 0 点赞 0 评论 163 浏览 评分:0.0