题解列表

筛选

小白单纯记录自己题解

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int temp,j,i,m,n,a[1000],b[1000]……

编写题解 1106: 奖学金

摘要:解题思路:结构体由总分,学号,语数英三部分组成,然后按照代码所示的嵌套条件进行排序。注意事项:参考代码:#include<stdio.h>typedef struct Student{ int num……

StringBuffer中的reverse

摘要:# ```java public class c1031 { public static void main(String[] args) { // TODO 自动生成的方法……

题目 1160: 出圈

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define MAX 100000int main() {    int m,n;    while(scanf("%d%d",&n,……
优质题解

1832-蓝桥杯2015年第六届真题-表格计算

摘要:解题思路:遍历矩阵中各个元素,有可能直接是数字,也可能是字符串表达式,输入时碰到数字直接转为int,便于后续条件判断碰到表达式要进行处理;1.判断是三种操作中哪一个2.取出左上角和右下角的坐标3.代入……

数组的距离

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>int main() {    int m,n,temp;    s……

题解 1004: [递归]母牛的故事

摘要:解题思路:递归就是程序调用自己的算法。将该问题转化为数学公式,可判断f(n)=f(n-1)+f(n-3).f(n)是第n年的母牛总数注意事项:~scanf("%d",&n) 上面的代码不是输入为0时,……