题解列表

筛选

JAVA的动态规划解法

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

malloc函数的使用

摘要:解题思路:注意事项:注意输入n后直接换行会被scanf吞掉,因此需要加一个getchar(),输入完字符串输入m时同理。参考代码:#include<stdio.h>#include<stdlib.h>……

结构体的使用

摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// 判断是否为闰年in……

没有写input和print函数

摘要:解题思路:注意事项:参考代码:#include#includetypedef struct {    char name[10];    char number[10];    int grade[3……

类似1050题可解

摘要:解题思路:注意事项:部分地方还可以更精简参考代码:#include <stdio.h>#include <stdlib.h>typedef struct { char name[10]; char n……

家人们,这个题解超简单!

摘要:解题思路:将金银铜分别输入三次即可,并先输入比了多少天即可。注意事项:不能把a,b,c的输入写在外面。参考代码:#include <bits/stdc++.h>using namespace std;……

冶炼金属--超快解法

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>#include<algorithm>using namespace std;const int i……

蓝桥杯2022年第十三届决赛真题-最大数字-暴力解

摘要:解题思路:最大数字,尽量从第一位开始每一位都接近 9;如果果该位是9就不用管 1)该位 + 可增加的次数 a 是否会超过 9, 超过就可以让该位达到9,增加次数-让该位到9的次数2)该位 < 减少次数……

矩阵加法python题解

摘要:解题思路:注意事项:参考代码:def matrix_add(matrix1,matrix2):     result=[]     rows1=len(matrix1)     cols1=le……