# -*- coding: utf-8 -*-
import io, sys, os, json, re, collections
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding="utf-8")
os.chdir(r"D:\work buddy\2026-11-05-14-15-52")
cands=json.load(open("_cands29.json",encoding="utf-8"))
print("total",len(cands))
print(collections.Counter(c["disc"] for c in cands))
# 优先可达校
prio=["up","notre","dartmouth","yale","cornell","brown","wustl","rice","geo","illinois","gatech","unc","uva","emory","vanderbilt","jhu","cmu","umich","col","mit","princeton","caltech","harvard","stanford","berkeley","ucla","ucsd","usc","duke","nyu","ut","uw","ubc","mcg","nu","umich"]
for sc in prio:
    rows=[c for c in cands if c["s"]==sc]
    if rows:
        print("\n==",sc,len(rows))
        for c in rows:
            print("  ",c["deg"],"|",c["disc"],"|",c["en"][:60],"|",os.path.basename(c["det"]))
