nyoj-696-Course
来源:互联网 发布:知乎 智能晾衣架 编辑:程序博客网 时间:2024/05/01 14:17
#include<stdio.h>
#include<string.h>
char a[105][35];
int b[105];
int main()
{
int s;
scanf("%d",&s);
while(s--)
{
int n,i,j,sum=0;
scanf("%d",&n);
scanf("%s %d",a[0],&b[0]);
for(i=1;i<n;i++)
{
scanf("%s %d",a[i],&b[i]);
for(j=0;j<i;j++)
{
if(strcmp(a[i],a[j])==0)
{
if(b[i]>b[j])
{
b[j]=b[i];
sum++;
}
break;
}
}
}
printf("%d\n",sum);
}
return 0;
}
- NYOJ 696 Course
- nyoj-696-Course
- Course
- course
- 【Course Schedule】Course Schedule
- Course Summarize
- famous course
- course-book
- Train Course
- FPGA course
- MIT course
- good-course
- SD-Course
- Course Schedule
- Course Schedule
- Course Schedule
- Course Schedule
- Course Schedule
- 快速排序转冒泡排序的临界值
- 【职场新人】如何消除挨批后的苦闷
- SqlBulkCopy来实现批量插入数据的功能
- hdu4185解题报告
- SQL Server: 如何为函数(或其它对象)添加版本信息
- nyoj-696-Course
- macos lua环境搭建
- VC操作ADO的基本流程
- 8021x 获取IP信息失败,请检查锐捷认证客户端当前配置是否符合所在网络的要求,检查完毕后尝试重新认证
- IOS CoreData 使用 (一)
- SVN服务器更改ip地址客户端怎么设置
- Code Jam 2009 Round1C Problem C. Bribe the Prisoners —— 区间DP
- SqlBulkCopy批量复制数据
- GPRS串口调试注意细节