2013年3月2日

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)

PAT 1012 The Best Rank

摘要: 题目链接http://pat.zju.edu.cn/contests/pat-a-practise/1012题目是很简单的,由于数据量很小,直接用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;... 阅读全文

posted @ 2013-03-02 11:43 civi 阅读(147) 评论(0) 推荐(0)

导航