2808: 买房子题解:详细注释 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int annual_income, rate, year; //annual_i…… 题解列表 2024年12月20日 1 点赞 0 评论 409 浏览 评分:10.0
自己做的新手,欢迎指导 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int mod(int y,i…… 题解列表 2024年12月20日 8 点赞 0 评论 490 浏览 评分:10.0
炒股需谨慎 除非你也有预知能力 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 全局变量声明 int t, n, a[110000], dp1[11…… 题解列表 2024年12月19日 0 点赞 0 评论 111 浏览 评分:0.0
计算两个日期差(不喜勿喷,本人只是一小小新手!) 摘要:解题思路:代码整体逻辑为,利用子代码判断年份是否闰年,和判断闰平一年的天数,接着先算结束日期在结束年份中的天数(day2),再计算起始日期在起始年份中的天数(day1),然后再根据其年份之间的差值,加…… 题解列表 2024年12月19日 0 点赞 0 评论 268 浏览 评分:0.0
我的自用zsbdzsbd 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;void zhuanzhi (int matrix_1[][3],int matrix_2[]…… 题解列表 2024年12月19日 0 点赞 0 评论 167 浏览 评分:0.0
空有大志 却没有实际行动 真是可悲 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量t, n和数组a、dp int t, n, a[1100…… 题解列表 2024年12月19日 0 点赞 0 评论 149 浏览 评分:0.0
三行解决逆序问题 摘要:解题思路:利用list的切片运算和for循环遍历输出注意事项:使用end=' ',可以实现不换行的遍历输出参考代码:a=list(map(int,input().split()))fo…… 题解列表 2024年12月19日 1 点赞 0 评论 743 浏览 评分:10.0
别再自命不凡了 少年 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量n和m,分别表示物品数量和最大容量 int n, m; …… 题解列表 2024年12月19日 0 点赞 0 评论 95 浏览 评分:0.0
另外一道相同原理https://www.dotcpp.com/oj/problem2814.html 摘要:解题思路:开辟一个动态变量注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); int arr[n]; …… 题解列表 2024年12月19日 0 点赞 0 评论 108 浏览 评分:0.0
链表合并(C语言链表方法) 摘要:解题思路:链表的优势在于插入数据时的高效性注意事项:单向链表节点之间的关系就像糖葫芦一样,一个连着一个,想吃(访问)他们其中的一个就得先访问前面的节点,将节点串一起的“棍子”就是结构体里的指针next…… 题解列表 2024年12月19日 1 点赞 0 评论 1013 浏览 评分:0.0