1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int L,M; cin>>L>>M; …… 题解列表 2024年11月07日 1 点赞 0 评论 626 浏览 评分:0.0
c语言中如何使用倍数(exp版) 摘要:解题思路:注意事项:使用倍数要使用math头文件本人在答案里使用了exp(x)意思是e的x倍数,p是大家常用pow的意思,负数前面加个-就可以了,注意使用scanf参考代码:#include<stdi…… 题解列表 2024年11月07日 0 点赞 0 评论 836 浏览 评分:0.0
c语言中双精度绝对值的函数 解题思路:计算浮点型绝对值使用fabs函数,原型:doublefabs(doublex)计算整数绝对值使用abs函数,原型:intabs(intx)计算长整型绝对值使用labs函数,原型:longlabs(longx)以题目为例,我们已经赋值x为双精度函数, 题解列表 2024年11月07日 0 点赞 0 评论 700 浏览 评分:0.0
2828: 与7无关的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int t=0,i,n,sum=0; scanf("%d",&n);…… 题解列表 2024年11月07日 0 点赞 0 评论 492 浏览 评分:0.0
数据结构用栈实现进制转换 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h>#define MAXSIZE 100typedef struct{ int data[MAXS…… 题解列表 2024年11月07日 0 点赞 0 评论 483 浏览 评分:0.0
循环链表解法(c语言代码) ```c#include#include//定义链表节点结构体typedefstructnode{intdata;//节点存储的数据structnode*next;//指向下一个节点的指针structnode*pre;//指向前一个节点的指针}linklist;//创建一个循环双向链表linklist 题解列表 2024年11月07日 1 点赞 0 评论 620 浏览 评分:0.0
小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ int k, n; dou…… 题解列表 2024年11月07日 0 点赞 0 评论 450 浏览 评分:0.0
2831: 画矩形 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() { int sum = 0, j, a, b, c, i; char d; scanf("%d…… 题解列表 2024年11月07日 0 点赞 0 评论 417 浏览 评分:0.0
T1267-01背包问题 摘要:解题思路:滚动数组—— 一维dp数组遍历:for( ) 物品 for( 逆序) 背包递推公式: dp[ j ] = max( dp[ j ] , dp[ j -w[ i ] ] + …… 题解列表 2024年11月07日 0 点赞 0 评论 497 浏览 评分:0.0
题解,标记 摘要:```c #include int main() { int n; scanf("%d", &n); int arr[n]; for (int i =…… 题解列表 2024年11月07日 0 点赞 0 评论 511 浏览 评分:0.0