巧用string和map 摘要:解题思路:利用string特性就行,然后用map来计数参考代码:#include<bits/stdc++.h>usingnamespacestd;map&l…… 题解列表 2025年04月05日 1 点赞 0 评论 36 浏览 评分:10.0
3311:排队(Java语言) 摘要:解题思路:用BufferedReader读取比Scanner节省时间和内存注意事项:题目描述:没有比x更高的同学,其实应该是比x低参考代码:importjava.io.BufferedRe…… 题解列表 2025年04月05日 0 点赞 0 评论 41 浏览 评分:0.0
王牌花色"A不应该是最大的吗?“ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int getCardValue(char card) { &n…… 题解列表 2025年04月04日 0 点赞 0 评论 37 浏览 评分:0.0
求大佬看看哪里错了,自己运行的答案是对的,但是测试有错误 摘要:解题思路:注意事项:参考代码:#define_CRT_SECURE_NO_WARNINGS#include<stdio.h>intmain(){ i…… 题解列表 2025年04月04日 0 点赞 0 评论 34 浏览 评分:0.0
矩阵转置(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月04日 0 点赞 0 评论 31 浏览 评分:0.0
盐水的故事(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年04月04日 0 点赞 0 评论 18 浏览 评分:0.0
十五届省赛真题-R 格式 摘要:解题思路:找到小数点位置并移除小数点移除前导0将字符串转换为整数数组通过n次乘以2来实现乘以2^n计算新的小数点位置进行四舍五入操作截断小数部分,只保留整数部分输出结果参考代码:#include&nb…… 题解列表 2025年04月03日 9 点赞 0 评论 1273 浏览 评分:10.0
生日日数(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;boolisleap(int…… 题解列表 2025年04月03日 0 点赞 0 评论 23 浏览 评分:0.0
班级人数(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ d…… 题解列表 2025年04月03日 0 点赞 0 评论 22 浏览 评分:0.0
1014: 阶乘求和题解(递归) 摘要:**解题思路:** 使用递归的方法定义一个求阶乘的函数来计算。**注意事项:** 需要将 int 整形改为 long long int 长整形型,否则可能出现测试 2 答案错误的情况。…… 题解列表 2025年04月03日 0 点赞 0 评论 127 浏览 评分:0.0