坐标排序(构建对象去处理坐标数据) 摘要:解题思路: - 既然用的C++,那就不用结构体去处理了,构建一个对象去处理,顺便使用构造函数去处理输入 - 将对象存入vector容器,再去排序,排序用的就是sort,想看手写快排的话,那放在这下…… 题解列表 2024年12月28日 0 点赞 0 评论 572 浏览 评分:0.0
两种非常简单的法子 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int a[100]; int i =…… 题解列表 2024年12月28日 1 点赞 0 评论 540 浏览 评分:0.0
选择排序的大材小用(不要学我) 摘要:#include<stdio.h> #include<string.h> int main(void) { char a[3][100], temp[100]; int fl…… 题解列表 2024年12月28日 0 点赞 0 评论 724 浏览 评分:0.0
思路正确简单明了 摘要:解题思路:#include<stdio.h> int main(void) { int a[10]; int i, j; for(i = 0; i < 10; i++…… 题解列表 2024年12月28日 1 点赞 0 评论 1023 浏览 评分:0.0
从后面移动,并保存消失的后面 摘要:解题思路:#include<stdio.h> int main(void) { int i, j, n, a[100], move; scanf("%d", &n); …… 题解列表 2024年12月28日 0 点赞 0 评论 801 浏览 评分:0.0
谁考了第k名 C++ 摘要:```cpp #include using namespace std; // 定义学生结构体 struct Student { int id; // 学号 …… 题解列表 2024年12月28日 0 点赞 0 评论 490 浏览 评分:0.0
烈焰 燃毁!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int…… 题解列表 2024年12月28日 0 点赞 0 评论 353 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 520 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 470 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 1174 浏览 评分:0.0