题解列表
编写题解 1044: [编程入门]三个字符串的排序--解题
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[3][128], tmp[128]; int i,……
P1016 (c语言)
摘要:```c
#include//01背包问题变形,这里可以认为体积与价值等价,因此将分别表示物品体积及价值的数组合并为一个数组即可
int w[40]={0};//注意初始化
int a[30……
编写题解 1002: [编程入门]三个数最大值--解题
摘要:解题思路:相互比较注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ int a,b,c;……
1000:简单的a+b
摘要:解题思路:简单的a+b注意事项:注意多项输入参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d", &a, &b))……
编写题解 1182: 人民币问题
摘要:解题思路:注意事项:参考代码:n=int(input())
a=((n-3)//5)
b=((n-6)//2)
s=0
for i in range(1,a+1):
for j in……
编写题解 1676: 数据结构-链表的基本操作
摘要:解题思路:注意事项:参考代码:#include <stdio.h>
#include <stdlib.h>
#include <string.h>
//结构体定义
typedef str……
1181: 不容易系列2
摘要:解题思路:两种方法 :一种用数学组合,一种用递归注意事项:参考代码:数学方法:def f(x):
s=1
for i in range(1,x):
s *=i
……
1501: 蓝桥杯算法提高VIP-分苹果(c++版)运用差分数组降低时间复杂度
摘要: :tw-2600:**解题思路:**
题目中m n数据量达是1e5限时1sec显然暴力枚举会超时,因此我们就需要使用到**差分数组**,这样可以**降低时间复杂度**
**关于差分数组,如果你想……