编程介的小学生 2019-05-01 00:10 采纳率: 20.5%
浏览 160

最短的等待时间的一个计算的问题,怎么采用C语言的程序的编写的实现?

Problem Description
Jam didn't study well,then he go to repair the computer in a store,there are M staffs and N guests, given each guests have to spend Tij time to repair the computer by the j staffs.

Now ask the total of time the guest at least to wait.
The staff wiil do the next work after he has done the current work

Input
The first line is T(1≤T≤100) means T Case

For each case

The first line is M and N(1≤M,N≤20) means the number of staffs and guests

Now given a Matrix with N∗M each number means the i guests to the j staff time (1≤Tij≤1000)

Output
Output one line about the time at least they need to wait

Sample Input
1
4 3
4 4 1 5
8 2 5 6
4 5 10 5

Sample Output
7

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥40 复杂的限制性的商函数处理
    • ¥15 程序不包含适用于入口点的静态Main方法
    • ¥15 素材场景中光线烘焙后灯光失效
    • ¥15 请教一下各位,为什么我这个没有实现模拟点击
    • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
    • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
    • ¥20 有关区间dp的问题求解
    • ¥15 多电路系统共用电源的串扰问题
    • ¥15 slam rangenet++配置
    • ¥15 有没有研究水声通信方面的帮我改俩matlab代码