题解列表
python-倍数问题
摘要:解题思路:注意事项:参考代码:from cmath import inf
n,k = map(int,input().strip().split())
……
C语言训练-排序问题<1>
摘要:x=list(map(int,input().split()))
x.sort()
for i in x:
print(i,end=' ')解题思路:注意事项:参考代码:……
[Sapphire]1098:陶陶摘苹果(简单易理解!!!)(C语言代码)
摘要:解题思路:这道题比较简单,看参考代码应该就没什么问题,加油加油!参考代码:#include<stdio.h>
#define chair 30//宏定义板凳的高度是30
int main()
……
无调用函数和指针的小白级题解
摘要:优质题解大多都用到函数调用和指针,写了一个不需要用这些,仅用字符串、输入输出和循环知识就能看懂的题解。
```cpp
#include
#include
#include
using nam……
密码破译(java代码)
摘要:解题思路:没什么思路,很简单的一道题目注意事项:题目要求用赋值法,并不需要输入内容,当然你输入也可以。参考代码:public class Main { public static void ma……
1169: 绝对值排序(c语言)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
#include<stdlib.h>
#include<math.h>
//定义结构体指针
typedef struct or……
[编程入门]水仙花数判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>
int main()
{
int n,a,b,c;
for(n=100;n<1000;n++)
{
……
优质题解
1100: 采药(背包问题)
摘要:解题思路:属于背包问题,用动态规划的思想求解。核心计算公式:t时间内考虑m个草药并且选择“采”的价值,计算公式为:(t - 第m个草药的耗时)时间内考虑(m - 1)个草药的最有解 + 第m个草药的价……