天天天都是大晴天

2012年8月15日

PAT 1036. Boys vs Girls

摘要: 第三个测试点是没有男生的情况没有测试点是针对男生比女生分高的情况题目的意思是要把Absent写在对应的行,女生占第一行,男生占第二行我是以为把唯一的最值输出 = =#include <iostream>#include <string>using namespace std;struct student{ string name; char gender; string id; int grade;}stu[1000];int main(){ int i,j,n,grade,f_temp=-1,m_temp=-1; string name,id; ch... 阅读全文

posted @ 2012-08-15 15:56 天天天都是大晴天 阅读(283) 评论(0) 推荐(0)