谁考了第K名 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner sc =…… 题解列表 2023年06月06日 0 点赞 0 评论 618 浏览 评分:0.0
容易看懂c语言 摘要:解题思路:两个数据有联系,用结构体 ,用冒泡法排序注意事项:交换的中间变量要为相同的结构体类型参考代码:#include<stdio.h>#include<string.h>typedef struc…… 题解列表 2023年01月13日 0 点赞 0 评论 550 浏览 评分:0.0
谁考了第K名(C语言)——输入时按分数排序再插入数组 摘要://使用C++文件,提交要用C++ #include#include#define N 500 struct S { char sid[N]; double score; }; int…… 题解列表 2023年03月22日 0 点赞 0 评论 758 浏览 评分:0.0
输出第n名的排序程序 ```c#includeintmain(){intsum,rank,r[100]={0},num[100];//r[]数组存放排名,num[]数组存放学号floatscore[100];//score[]数组存放分数scanf("%d%d",&sum,&rank);//sum输入人数, 题解列表 2023年01月20日 0 点赞 1 评论 669 浏览 评分:9.0
2916: 谁考了第k名(python) 摘要:解题思路:注意事项:参考代码:def KEY(x): return float(x[1]) n,k = map(int,input().strip().split()) nu…… 题解列表 2023年03月12日 0 点赞 0 评论 572 浏览 评分:9.0
2916: 谁考了第k名 摘要:解题思路:注意事项:参考代码://冒泡排序 #include <stdio.h> int main() { int n = 0, k = 0, a[105] = {0};//变量的声明…… 题解列表 2022年10月28日 0 点赞 0 评论 967 浏览 评分:9.7
pair来写容易很多 摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp…… 题解列表 2023年04月25日 0 点赞 0 评论 562 浏览 评分:9.9
谁考了第k名 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) …… 题解列表 2023年05月09日 0 点赞 0 评论 482 浏览 评分:9.9
来一手冒泡练习 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct Student { int id; float score;};int main(){ int n,m; scanf("…… 题解列表 2023年03月15日 0 点赞 0 评论 639 浏览 评分:9.9
2916: 谁考了第k名 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc…… 题解列表 2023年05月24日 0 点赞 0 评论 606 浏览 评分:9.9