1052: [编程入门]链表合并 python 摘要:解题思路:用列表存学号,用字典存学号-成绩键值对,只对列表排序即可注意事项:无参考代码:a,b = map(int,input().split()) i = 0 dictlinshi = {} …… 题解列表 2021年04月25日 0 点赞 0 评论 246 浏览 评分:0.0
题解 1052: [编程入门]链表合并 摘要:参考代码:#include<stdio.h>#include<stdlib.h>typedef struct Node{ int number; int grade; struct …… 题解列表 2021年05月13日 0 点赞 0 评论 270 浏览 评分:0.0
[编程入门]链表合并-题解(C语言) 摘要:```c #include int ave1=0,ave2=0,ave3=0; struct a{ int b; int c; }student[100],temp; void …… 题解列表 2021年09月10日 0 点赞 0 评论 218 浏览 评分:0.0
利用STL中的map解题(C++) 摘要:看到学号和成绩是一一对应的, 并且学号不重复,需要根据学号(key)排序。 可以用STL中的map处理信息。 ```cpp #include //先引入一个万能库 using names…… 题解列表 2021年09月13日 0 点赞 0 评论 211 浏览 评分:0.0
超级好用的C++容器 摘要:解题思路:采用C++的set容器,自动按第一个元素排序,在加入set<pair<int,int>> S;注意事项:auto 是C++13 的语法参考代码:#include<bits/stdc++.h>…… 题解列表 2021年10月13日 0 点赞 0 评论 175 浏览 评分:0.0
[编程入门]链表合并 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; typedef struct node{ int num; int…… 题解列表 2021年11月13日 0 点赞 0 评论 157 浏览 评分:0.0
编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <malloc.h> typedef struct student { double number; …… 题解列表 2021年11月18日 0 点赞 0 评论 216 浏览 评分:0.0
自己看.............. 摘要:#define _CRT_SECURE_NO_WARNINGS#include <iostream>#include <stdio.h>#include <cmath>#include <algori…… 题解列表 2021年12月04日 0 点赞 0 评论 355 浏览 评分:0.0
1052: [编程入门]链表合并,用字典来解决 摘要:解题思路:注意事项:参考代码e,f = map(int,input().split())dict={}list = []while True: try: a,b=map(int,i…… 题解列表 2021年12月04日 0 点赞 0 评论 192 浏览 评分:0.0
1052: [编程入门]链表合并 摘要:这里的解法是依次将结点插入链表。题目的本意应该是提供 a 和 b 两个现成的链表,然后将 b 链表归并到 a 链表里,最后将链表排序。#include<bits/stdc++.h> using na…… 题解列表 2021年12月19日 0 点赞 0 评论 260 浏览 评分:0.0