模拟 #2911: 连续出现的字符 摘要:``` #include #include #include #include using namespace std; int main() { char str[1010]…… 题解列表 2024年10月25日 0 点赞 0 评论 141 浏览 评分:9.9
sort# 2332: 信息学奥赛一本通T1181-整数奇偶排序 摘要:``` #include #include #include using namespace std; int main() { //定义两个数组分别存放奇数和偶数 int …… 题解列表 2024年10月25日 0 点赞 0 评论 147 浏览 评分:0.0
冒泡排序# 信息学奥赛一本通T1310-车厢重组 摘要:``` #include #include #include using namespace std; const int N = 1e4 + 10; int a[N]; int…… 题解列表 2024年10月25日 1 点赞 0 评论 242 浏览 评分:0.0
哈希法,map+vector法# 2974: 统计字符数 摘要:[TOC] # 哈希法 ``` #include #include using namespace std; //统计每个字符出现的次数,因为有26个字母,所以开到26 int …… 题解列表 2024年10月25日 0 点赞 0 评论 121 浏览 评分:0.0
while+for : 2833: 金币 摘要:``` #include using namespace std; int main() { int n; cin >> n; //IDX:用来表示当前发多少硬币 …… 题解列表 2024年10月25日 0 点赞 0 评论 161 浏览 评分:0.0
for循环,数组的运用。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; int Sn=0; int a[100]…… 题解列表 2024年10月24日 0 点赞 0 评论 240 浏览 评分:9.9
捏马马的,怎么要分组输出啊?!(点击看优质题解 摘要:解题思路:总体来说没什么难点,硬要说的话,主要在于需要升序输出箭失长度和需要分组输出,而不是几组合在一起然后一次性输出注意事项:分组降序输出!以及输出完每组的箭矢后需要清空map容器中的内容,当然,如…… 题解列表 2024年10月24日 0 点赞 0 评论 158 浏览 评分:0.0
三角形 (三角形类动态规划模板) 摘要: #include #include using namespace std; int s[101][101]; int main(){ …… 题解列表 2024年10月24日 4 点赞 0 评论 459 浏览 评分:10.0
c++cout函数实现 摘要:解题思路:使用cout结合操纵符oct(八进制输出)和showbase(显示进制前缀)输出八进制形式的数字,接着使用hex(十六进制输出)和showbase输出十六进制形式的数字,中间用空格分隔。注意…… 题解列表 2024年10月23日 2 点赞 0 评论 543 浏览 评分:9.9
金明的预算方案(DP) 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;constintN…… 题解列表 2024年10月23日 0 点赞 0 评论 150 浏览 评分:0.0