题解 2773: 计算线段长度 math.h头文件 摘要:??解题思路??此题中两点之间存在四种情况:1.两点 X坐标 相同表示为: Xa == Xb解:两点 Y坐标 差值的 绝对值2.两点 Y坐标 相同表示为: Ya == Yb解:两点 X坐标 差值的 绝…… 题解列表 2024年08月30日 0 点赞 0 评论 243 浏览 评分:9.9
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int swap(int *a,int *b){ int temp; temp=*a; *a=*b; *b=temp; return …… 题解列表 2024年08月30日 0 点赞 0 评论 394 浏览 评分:9.9
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 132 浏览 评分:9.9
1160: 出圈 (vector , 公式法) 摘要:解题思路:Vector注意事项:删除元素的位置在末尾的时候,需要注意初始化为0参考代码:#include#include using namespace std; int main() { …… 题解列表 2024年08月31日 0 点赞 0 评论 159 浏览 评分:9.9
循环链表解法(c语言代码) 摘要:```c #include #include // 定义链表节点结构体 typedef struct node { int data; // 节点存…… 题解列表 2024年08月31日 0 点赞 0 评论 120 浏览 评分:9.9
循环链表解法(c语言代码) 摘要:我是很不想用链表的,因为每次写完都有一堆bug,因为链表很容易访问到空指针。但是我更不想用数组,数组太费脑子了。 ```c #include #include // 定义链表节点结构体…… 题解列表 2024年08月31日 0 点赞 1 评论 368 浏览 评分:9.9
大象喝水零基础题解 摘要:我们先敲出来C语言的基础框架#include <stdio.h>int main(){ return 0 ;}题目是说问大象喝几桶才能喝够20升同时输入的是cm,这两个很明显不是对应的关系,需要…… 题解列表 2024年08月31日 0 点赞 0 评论 339 浏览 评分:9.9
2914: 铺地毯 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年09月01日 0 点赞 0 评论 196 浏览 评分:9.9
1161: 回文数(高精度) 摘要:解题思路: 高精度求和注意事项:参考代码:#include<iostream> using namespace std; const int N = 1e3 + 10; int a[N],b[N…… 题解列表 2024年09月01日 0 点赞 0 评论 240 浏览 评分:9.9
2915: 接水问题 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年09月01日 0 点赞 0 评论 123 浏览 评分:9.9