会员登录 用户名: 密码: 登录 新会员注册 [找回密码]
当前位置:编程论坛 >> 编程技术交流 >> 软件测试论坛 >> [转帖]做测试3、4年的感想
首页
  发表一个新主题  发表一个新投票  回复主题 您是本帖的第 4965 个阅读者浏览上一篇主题  刷新本主题   平板显示贴子 浏览下一篇主题
 * 贴子主题:[转帖]做测试3、4年的感想 报告本帖给版主  显示可打印的版本  把本贴打包邮递  把本贴加入论坛收藏夹  发送本页面给朋友  把本贴加入IE收藏夹 
 shjingjing 美女呀,离线,快来找我吧!金牛座1986-4-25
  
  
  等 级:初出江湖
  积 分:219
  专家分:0
  提问帖:0/0
  回答帖:1
  总帖数:10
  经验值:36
  注 册:2008-4-27
给shjingjing发送一个短消息 把shjingjing加入好友 查看shjingjing的个人资料 搜索shjingjing在软件测试论坛的所有贴子 引用回复这个贴子 回复这个贴子

发贴心情 

各位哥哥多多帮忙啊!   
 How to earn more
Xiao Ming is an expert in computer science and technology, so he can get a lot of projects 

every month. The projects always bring him a lot of money, now he is thinking how to earn 

money as more as possible.

Every month he can get m projects, and each project Ai will bring him Xi yuan. Although Xiao 

Ming is an expert, he still needs to hire some other guys to help him. Of course, the 

employees are not as good as Xiao Ming, for they are just good at some single aspect. So, 

they should work together to finish one project. There is a list shows the salary of m 

employees, who are labeled from 0 to m-1. Xiao Ming only hires employees, in that list, and 

he knows who will be needed by each project.If one employee is hired, he can join in several 

projects. 


Input

The first line is an integer c shows the number of cases. For each case, the first line has 

two numbers m,n(m,n <=100), denoting that there is m projects and n employees on the 

list.The second line has m integers, which are seperated by a single blank, the ith number 

Ximeans the project Ai will bring Xiao Ming Xi yuan. Xi is less the 10000. The third line 

has n integers, which are seperated by a single blank, the ith number Yimeans the employee 

Bi will cost Xiao Ming Xi yuan. And the next m lines will show which part of the employees 

will be needed by each project. Line i is a list of the employees, who are needed by project 

Ai. In each line, first a number Zi shows the number of employees needed by this project. 

And Zi labels of the emloyees follows, which are still seperated by a sigle blank. 


Output

You should output a single integer shows the maximun money Xiao Ming can earn in a single 

month. The money he can earn is equall to the money he can totally get minus the money he 

totally cost. You should not leave any extra blanks at the end of each line. 

Sample Input


1
3 5
30 40 43
55 17 23 22 11
3 0 1 2
3 1 2 3
2 2 1

Sample Output


21

Hint

If Xiao Ming can do less project to earn more money, he will certainly do that.


我很美!

发帖:2008-4-27 12:49:00

本主题贴数32,分页:[返回帖子列表] [上一页] [1] [2] [3] [4] [下一页]

 *树形目录 顶端 
主题:  [转帖]做测试3、4年的感想(4844字) - 我挂科了,2007年9月22日
    回复:  是呀,做测试整天做一些重复性的工作,烦(38字) - lm123123,2008年8月29日
    回复:  测试不如开发”这句话我有点不赞成,因为现在不管什么软件是越做越大,相对的软件测试越来越重要,一个软..(193字) - lijingang,2008年7月17日
        回复:  什么事都是有一个过程的,任何事都会有不重视到重视的这么个过程,任何一个产品没有质量的保证都不会畅销..(225字) - 国宝级的佳,2008年8月28日
    回复:  相信自已虽然我是个菜鸟什么都不懂但在我心中测试员是一个神圣的职业我的理想就是做一个很棒的测试员虽然..(161字) - bayu522899,2008年6月17日
        回复:  学习,应该重视程序测试啊![em15](32字) - drogen,2008年7月10日
    回复:  软考我就想考这个哇,。。。。应该会好难的吧(44字) - 心星缘,2008年6月12日
    回复:  各位哥哥多多帮忙啊! How to&nbs..(2175字) - shjingjing,2008年4月27日
        回复:  做测试是一件枯燥但有意义的事情,测试人员也必须同编程人员一样,在工作过程中不断的学习和提高自身的素..(430字) - 苦寒,2008年4月29日
            回复:  [QUOTE[B以下是引用苦寒在2008-4-29 13:37:00的..(309字) - 我挂科了,2008年5月9日
    回复:  呵呵,我做程序员已有三,四年,我在一家大公司上班,做测试都是打工心态,不认真,一般是我自己写完,自..(138字) - redalert,2008年4月27日
        回复:  各位哥哥多多帮忙啊! How to&nbs..(2175字) - shjingjing,2008年4月27日
        回复:  好哥哥,求你了,帮帮忙,快!(2175字) - shjingjing,2008年4月27日
        回复:  各位哥哥多多帮忙啊!各位哥哥多多帮忙啊! How&n..(2197字) - shjingjing,2008年4月27日
    回复:  我也是个新手,还在学习阶段,不过相信未来是美好的![em01](56字) - xuxinyan22,2008年3月29日
    回复:  测试并不单单是功能测试,还有白盒测试,高薪的人一般都是后者。测试行业在以后的发展应该是越来越好的,..(116字) - zhengfl,2008年3月28日
    回复:  说的太好了,加班加班,反反复复。(32字) - 相思红豆,2008年1月11日
    回复:  本来打算转行做测试的,看了以后有些犹豫了[em16](46字) - jiayou9999,2008年1月3日
    回复:  做测试接近半年了,多楼主的一席话很有感触!(40字) - plhljc621,2007年12月29日
    回复:  测试做好也不容易啊(20字) - lindan_03,2007年12月26日
    回复:  测试的未来在将来!(18字) - 发呆,2007年12月24日
    回复:  新手···支持下··(20字) - xhq789,2007年12月23日
    回复:  我也是初入软件行业的,对之懂的不多。但我记得老师告诉我们,在当今中国测试人员是很紧缺的,而且工资也..(268字) - 蓝色的雪,2007年12月22日
    回复:  我是新手,即将进如测试行业,看了各位的话有些不解,也许现状让我们心寒,但我相信以后这个行业会有一定..(189字) - ximen120,2007年12月15日
    回复:  “测试不如开发”这句话我有点不赞成,因为现在不管什么软件是越做越大,相对的软件测试越来越重要,一个..(189字) - eaglehaozz,2007年12月9日
    回复:  听说,软件测试师跟医生一样是越老越吃香的(40字) - angie,2007年11月30日
    回复:  多制造一些容易产生bug的例子我想这是所有的测试人员的所有工作吧.可是,关键是怎样才能设计出能够发..(117字) - 无缘今生,2007年11月28日
    回复:  以前的向往能做测试员,现在看了这么多都有些犹豫。还有许多困难等着我们这些新手。。。..(82字) - jielantaiz,2007年11月9日
        回复:  呵,国内不注重测试,一般都是觉得能用就OK,所以基本都是停留在黑盒测试的水平:D &nb..(110字) - new5945,2007年11月24日
    回复:  我还一直认为软件测试是很高薪的(30字) - zhaozhiang,2007年10月22日
    回复:  我上回还看到一篇文章说,中国在高级软件测试人员将出现很大的缺口!(64字) - zzx158127,2007年10月20日
    回复:  “测试不如开发”的确是不对的,但是由于目前的现状的确如此,公司一般对测试的重视程度还是明显不够的。..(98字) - Delphi,2007年9月22日

 *快速回复:[转帖]做测试3、4年的感想  [ 回帖是一种美德 :) ]
会员账号 用户名    还没注册?    密码    忘记密码?
内容
  • HTML标签: 不可用
  • UBB标签: 可用
  • 贴图标签: 可用
  • 多媒体标签:可用
  • 表情字符转换:可用
  • 上传图片:不可用
  • 最多15KB
  • 点击表情图即可在帖子中加入相应的表情
                                
    邮件回复 显示签名   [Ctrl+Enter直接提交贴子]