题解 2916: 谁考了第k名

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

谁考了第K名

摘要:解题思路:注意事项:参考代码:public class Main {     public static void main(String[] args) {         Scanner sc =……

容易看懂c语言

摘要:解题思路:两个数据有联系,用结构体 ,用冒泡法排序注意事项:交换的中间变量要为相同的结构体类型参考代码:#include<stdio.h>#include<string.h>typedef struc……

输出第n名的排序程序

摘要:```c #include int main() { int sum, rank, r[100] = { 0 }, num[100];//r[]数组存放排名,num[]数组存放学号 fl……

2916: 谁考了第k名(python)

摘要:解题思路:注意事项:参考代码:def KEY(x):     return float(x[1])      n,k = map(int,input().strip().split()) nu……

2916: 谁考了第k名

摘要:解题思路:注意事项:参考代码://冒泡排序 #include <stdio.h> int main() {     int n = 0, k = 0, a[105] = {0};//变量的声明……

pair来写容易很多

摘要:解题思路:pair第一个存学号第二个存成绩然后用bool来进行判断加上sort排序注意事项:参考代码:#include<iostream>#include<algorithm>using namesp……

谁考了第k名

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args)  ……

来一手冒泡练习

摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct Student { int id; float score;};int main(){ int n,m; scanf("……

2916: 谁考了第k名

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;long long xh[10001],temp1;int m[10001];float sc……