- 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)