题解列表
编写题解 2825: 计算多项式的值,python超简单
摘要:x,n = input().split()
x = float(x)
n = int(n)
# 初始化result和item变量
result = 1.0
item = 1.0
# 使用……
编写题解 2833: 金币,python超简单
摘要:def calculate_coins(days):
coins = 0 # 初始化骑士收到的金币总数为0
n = 1 # 初始化每天的金币数量为1
day_coun……
python代码解决问题
摘要:解题思路:注意事项:参考代码:x1,y1,x2,y2,x3,y3,x4,y4=map(int,input().split())s1=(x2-x1)*(y2-y1)+(x4-x3)*(y4-y3)x_l……
利用重载进行多个数字相加
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int add(int a,int b){ return (a+b);}int add(……
判断元音字母出现的位置
摘要: #include
#include
#include
/* run this program using the console pauser or add……
1866: 三位数反转 (公式简化计算结果)(学习 @弥城猫巷 本题代码中的补零)
摘要:思路:
三位数abc: a×100+b×10+c×1
三位数反转cba: c×100+b×10+a×1
abc - cba = 99×(a-c)
cba = abc - 99×(a-c……