题解列表
简单又实用,看不懂请打死我
摘要:解题思路:用排序函数sort对输入的数据进行排序,使用降重函数unique对输入的数据进行降重并输出注意事项:使用sort和unique前添加头文件#include<algorithm>参考代码:#i……
编写题解 1098: 陶陶摘苹果
摘要:解题思路:这个程序首先使用 Scanner 类读取输入数据。在读取10个苹果的高度时,我们使用一个整型数组来存储它们。在读取陶陶能够伸手的最大高度时,我们直接使用一个整数来存储它。接下来,程序使用一个……
编写题解 2824: 求出e的值
摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanne……
刷題記錄,新手勿怪-带注解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct transcript{ char student_num[20]; char name[20]; int grade[3]……
1004题: 母牛生子的故事
摘要:# 自己写的代码
```c
#include
int main()
{
int n;
int sum=0;
while(~scanf("%d\n",&n)){
……
1003题: 密码破译
摘要:# 自己写的代码:
```c
#include
#include
int main()
{
char a[5]; //刚开始写的时候没有定义括号里的数字
for(int……
链表删除练习-链表基础函数(有详细注释)
摘要:```c
#include
#include
#include
typedef struct Node
{
int date;
struct Node* next;
}NODE;
……