高精度加法(简单版) 摘要:解题思路:用数组用数组用数组(重要的事情说三遍)注意事项:注意进位和逆序输入输出参考代码:#include<stdio.h>#include<string…… 题解列表 2022年11月19日 1 点赞 0 评论 562 浏览 评分:9.9
用字符数组做的,简单得感觉像是偷懒,完全不用思考 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>intmain(void){…… 题解列表 2025年01月27日 18 点赞 0 评论 1786 浏览 评分:10.0
就是分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>intmain(void){intx,award;&…… 题解列表 2025年01月27日 0 点赞 0 评论 831 浏览 评分:0.0
题解 2905: 最大值和最小值的差 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b[100000]; scanf("%…… 题解列表 2025年01月27日 0 点赞 0 评论 535 浏览 评分:0.0
题解 2907: 不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ long long a,b[1000],sum=0; scanf(&qu…… 题解列表 2025年01月27日 1 点赞 0 评论 436 浏览 评分:0.0
二维数组求解多状态dp 多状态dp题目说了**跑or休息**有点01背包的感觉就是在暗示**二维数组求解**然后是我们熟悉的动规三部曲先定义状态这里dp[i][j]我表示在第i分钟j疲倦度下的最大路程然后是状态转移方程了既然是多状态那么一定要细心读题目题目说跑or休息所以我立刻想到dp[i][j]=max(dp[i][j], 题解列表 2025年01月28日 2 点赞 0 评论 546 浏览 评分:6.0
作业调度方案(模拟) 摘要:解题思路: 模拟注意事项:参考代码:#include<iostream>usingnamespacestd;constintN&nb…… 题解列表 2025年01月28日 0 点赞 0 评论 368 浏览 评分:0.0
倒杨辉三角形(递推) 摘要:解题思路:递推注意事项:参考代码:#include<iostream>#include<iomanip>usingnamespacestd;…… 题解列表 2025年01月29日 0 点赞 0 评论 434 浏览 评分:0.0
假币问题(模拟,分治) 摘要:解题思路:模拟注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&…… 题解列表 2025年01月29日 2 点赞 0 评论 491 浏览 评分:0.0
做幻方(模拟) 摘要:解题思路:模拟注意事项:宽度设置参考代码:#include<iostream>#include<iomanip>usingnamespace&n…… 题解列表 2025年01月29日 0 点赞 0 评论 377 浏览 评分:0.0