PAT乙级 1085 PAT单位排行 (17/25 分) Java 实现
测试点4.5超时
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
public class pat1085 {
public static void main(String[] args) throws IOException{
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StreamTokenizer st = new StreamTokenizer(br);
st.nextToken();
int N = (int)st.nval;
int schoolNum = 0; //记录学校数量
Map
共有 0 条评论