**
PAT 1014 waiting in line
**
调试了一天,后来才发现是题目看错了
Note that since the bank is closed everyday after 17:00, for those customers who cannot be served before 17:00, you must output Sorry instead.
是要在17:00来的才输出sorry,17:00后才服务完的即使服务到第二天都要服务完,不能输出sorry。**
#include <bits/stdc++.h>
using namespace std;
int n , m , k , q , Time = 0 , ans[1001] , minn2 , minwin , isans[1001];
struct node{
int Index , value , t;
};
struct nd{
int l = 0 , r = 0;
node line[2001];
}win[21];
void affir(){
minn2 = 0x7fffffff;
for(int i = 1; i <= n; ++i){
//找到办事时间最短的那个人
if(minn2 > win[i].line[win[i].l].value