北航算法上机答案.docVIP

  • 3
  • 0
  • 约4.76万字
  • 约 32页
  • 2018-02-07 发布于河南
  • 举报
北航算法上机答案

算法上机1A A访问统计 #includeiostream #includealgorithm using namespace std; typedef struct nod { string s; int v; bool operator(const nodit)const { if(v!=it.v) return vit.v; return sit.s; } }nod; nod f[50]; int main() { int N; cinN; for(int i=0;iN;i++) { cinf[i].s; f[i].v=0; } int M; cinM; int T,V; string S; for(int i=0;iM;i++) { cinSTV; for(int j=0;jN;j++) { if(f[j].s==S) {

文档评论(0)

1亿VIP精品文档

相关文档