题解列表

筛选

编写题解 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……

sort函数妙解数位排序

摘要:解题思路:在sort函数中添加优化的比较函数cmp注意事项:数组要比十万大一点参考代码:#include <iostream> #include<algorithm> using namespac……

Java题解:01背包问题

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {    public static void main(String[] args……