Bessie的体重问题(01背包) 摘要:解题思路:01背包注意事项:测试数据有误, hack AC参考代码:#include<bits/stdc++.h>usingnamespacestd;c…… 题解列表 2025年08月01日 0 点赞 0 评论 75 浏览 评分:0.0
犁田的机器人(模拟离散) 摘要:解题思路:模拟注意事项:测试数据有误, hack AC参考代码:#include<bits/stdc++.h>usingnamespacestd;const…… 题解列表 2025年08月01日 0 点赞 0 评论 56 浏览 评分:0.0
2025/8/1刷题记录 摘要:解题思路:通过%10取出个位数 通过/10消除个位数注意事项:参考代码:#include<stdio.h>int main(){ //y记录最后一位数字 …… 题解列表 2025年08月01日 0 点赞 0 评论 57 浏览 评分:0.0
2025/8/1刷题记录 摘要:解题思路:和取反一样就是加了个判断第一个个位数是不是0通过定义一个i来判断是不是第一个 判断正负 正就正常取反 复就先算出绝对值然后输出一个-然后再取反注意事项:参考代码:#…… 题解列表 2025年08月01日 1 点赞 0 评论 63 浏览 评分:0.0
2025/8/1刷题记录 摘要:解题思路:取反时顺便判断是否和k相等相等sum+1 到时候判断条件就可以注意事项:参考代码:#include<stdio.h>int main(){ int m,…… 题解列表 2025年08月01日 0 点赞 0 评论 74 浏览 评分:0.0
2798 整数序列的元素最大跨度值 摘要:解题思路:求整数序列的最大跨度值(最大值减去最小值)注意事项:最大值用 if(x > max),最小值用 if(x < min)最小值初始化为“很大”,最大值初始化为“很小”参考代码:#i…… 题解列表 2025年08月02日 0 点赞 0 评论 49 浏览 评分:0.0
牛棚回声(模拟) 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;intmain(){…… 题解列表 2025年08月02日 0 点赞 0 评论 57 浏览 评分:0.0
2799 奥运奖牌计数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,gold,silver,bronze,sum=0,sum_go…… 题解列表 2025年08月02日 0 点赞 0 评论 67 浏览 评分:0.0
编写题解 2954: 大整数乘法(注释清晰 简单易懂) 摘要: #include #include #include // 反转字符串 void reverseString(char *str) { int len = st…… 题解列表 2025年08月02日 0 点赞 0 评论 87 浏览 评分:0.0
2025/8/3刷题记录 摘要:解题思路:通过sum记录累加和 int c记录原始b b=a+b后保证 a能赋值原始b注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2025年08月03日 0 点赞 0 评论 71 浏览 评分:0.0