题解列表
1539: 蓝桥杯算法提高VIP-格式化数据输出
摘要: #include
int main()
{
double arr[5][3]={{960.00,129500.00,1080.00},{10.30,27.57,8.20},……
(c语言--暴力解法)
摘要:解题思路:先将数字各位相加,在判断之和是否与n相等,相等在进行下一步---判断是否为回文,利用数组将各位存放在数组中,依次比较。注意事项:要考虑数字的位数,和不存在的情况---利用一个变量flag参考……
信息学奥赛一本通T1272-分组背包-题解(各语言代码)
摘要:**python**
```python
v,n,t=map(int,input().split())
l=[[] for _ in range(-~t)]
dp=[0]*-~v
for _……
1986——————鸡兔同笼
摘要: s = int(input()) #输入整数s(20≤s≤40)
sum = 80 #脚共有80只,也就是鸡兔分别40只(各两只脚平均)
a = 2*s-40 #用整数……
1979——————求平均工资
摘要: n = int(input()) #输入员工个数
s = [] #空列表
for i in range(1,n+1): #迭代遍历员工个数
a = in……
1978——————分类计算
摘要: a,b = map(int,input().split())
sum = a + b
square = pow(a,2) + pow(b,2)
if square……
1952——————求长方形的面积
摘要: a,b = map(int,input().split())
print('C:{}'.format(a*2+b*2))
print('S:{}'.format(a*b))……
公约公倍题解——C++, 函数
摘要:参考代码:#include <iostream>using namespace std;// 定义函数int gcf(int a, int b);int lcm(int a, int b);int m……