题解列表

筛选

汽水瓶 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>int fin(int k){ int y; y = k / 2; ……

链表实现 ( 可AC )

摘要:解题思路: 注意事项: 参考代码: #include<stdio.h> #include<stdlib.h> int num = 0; typedef struct stu ……
优质题解

Manchester-水陆距离 (朴素方法)

摘要:解题思路:①:若某陆地上下左右其中有一个是水域,则该陆地到水域的最短距离一定为1②:两个点的距离为x坐标相减的差得绝对值与y坐标相减差的绝对值之和③:把所有水域的坐标保存起来,用②距离公式求出距离选最……

大小写转换 (C语言代码)

摘要:解题思路: 一边输入一边输出,输出时注意将小写变为大写即可,英文字母小写变为大写只需要减32即可注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int m……

小明A+B (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main() {    int t;    scanf("%d", &t);    int a[t][2], b[t], i,……

上车人数 (C语言代码)

摘要:解题思路:从第二站开始,就需要知道上车人数,由题目得知:第二站一定有人上下车,由于上一站上了a个人,那么第二站最多下车人数是a,由于第二站的下车人数与上车人数相等,那么第二站上车人数的范围应该在1到a……