PAT 1012 The Best Rank
摘要:
题目是很简单的,由于数据量很小,直接用O(N^2)的方法就可以了。#include<iostream>using namespace std;struct info{ string id; int score[4]; int rank[4];};int n,m;info student[2001];void sort(){ info tmp; for (int i = 0; i < 4; i++){ for (int j = 1; j < n; j++) { tmp = student[j]; ... 阅读全文
posted @ 2013-03-02 11:45 civi 阅读(219) 评论(0) 推荐(0)
浙公网安备 33010602011771号