巧用string和map 摘要:解题思路:利用string特性就行,然后用map来计数参考代码:#include<bits/stdc++.h>usingnamespacestd;map&l…… 题解列表 2025年04月05日 1 点赞 0 评论 371 浏览 评分:10.0
矩阵转置(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月04日 0 点赞 0 评论 229 浏览 评分:0.0
盐水的故事(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年04月04日 0 点赞 0 评论 214 浏览 评分:0.0
十五届省赛真题-R 格式 摘要:解题思路:找到小数点位置并移除小数点移除前导0将字符串转换为整数数组通过n次乘以2来实现乘以2^n计算新的小数点位置进行四舍五入操作截断小数部分,只保留整数部分输出结果参考代码:#include&nb…… 题解列表 2025年04月03日 9 点赞 0 评论 1679 浏览 评分:10.0
生日日数(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;boolisleap(int…… 题解列表 2025年04月03日 0 点赞 0 评论 193 浏览 评分:0.0
班级人数(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ d…… 题解列表 2025年04月03日 0 点赞 0 评论 205 浏览 评分:0.0
信息学奥赛一本通T1279-橱窗布置 dfs+剪枝 摘要:解题思路:由于本人不会dp所以来一发dfs解题,哈哈哈注意事项:参考代码:#include"bits/stdc++.h"usingnamespacest…… 题解列表 2025年04月03日 0 点赞 0 评论 319 浏览 评分:0.0
演讲大赛评分 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){ i…… 题解列表 2025年04月03日 0 点赞 0 评论 234 浏览 评分:0.0
求组合数(模拟) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constintN&…… 题解列表 2025年04月03日 0 点赞 0 评论 232 浏览 评分:0.0
母牛生小牛(递推) 摘要:解题思路:第i天牛的数量等于前一天牛的数量(f[i-1]) 加上第i天新下的牛(f[i-3])注意事项:参考代码:#include<bits/stdc++.h>usingn…… 题解列表 2025年04月03日 0 点赞 0 评论 178 浏览 评分:0.0