题解列表
谁考了第k名 C++
摘要:```cpp
#include
using namespace std;
// 定义学生结构体
struct Student {
int id; // 学号
……
编写题解 2997: 梯形面积
摘要:```cpp
#include
using namespace std;
int main()
{
double e;
e=150*2/15*(15+25)/2;
……
从后面移动,并保存消失的后面
摘要:解题思路:#include<stdio.h>
int main(void)
{
int i, j, n, a[100], move;
scanf("%d", &n);
……
选择排序的大材小用(不要学我)
摘要:#include<stdio.h>
#include<string.h>
int main(void)
{
char a[3][100], temp[100];
int fl……
坐标排序(构建对象去处理坐标数据)
摘要:解题思路:
- 既然用的C++,那就不用结构体去处理了,构建一个对象去处理,顺便使用构造函数去处理输入
- 将对象存入vector容器,再去排序,排序用的就是sort,想看手写快排的话,那放在这下……