题目题意:给出银行的窗口数n,以及每个窗客tip:模拟#include <iostream&...
原创 2023-06-27 10:26:08
68阅读
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules
转载 2018-08-06 14:08:00
78阅读
1014 Waiting in Line (30分) Sample Input: 2 2 7 5 1 2 6 4 3 534 2 3 4 5 6 7 Sample Output: 08:07 08:06 08:10 17:00 Sorry 思路 这道题是一个银行队列的模拟,具体处理比较复杂,要想不超
原创 2022-06-02 18:18:57
43阅读
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules ...
转载 2021-08-26 20:45:00
65阅读
2评论
N个窗口,每个窗口黄线内M名; 当这些窗口未满时,排满(人数短的先排,即分别排1个,当都是一个,排两个……知道都排满) 新进的人处理结束的时间=当前队列最后一个处理结束的时间+新进人处理时间 当排满后要在进入,即这些队伍中的某一队头一个最快处理结束,新进的进到此队列,当有两个或以上的队有同最快处理结束,窗口编号靠前的先。 输出:!!如果这个人在17:00之前入队不包括(17:00),那么输出这个人处理结束时间; 否则Sorry。
原创 2022-11-25 11:13:35
40阅读
返回目录题意某银行有N个窗口,每个窗口前最多可以排M个人。现在有K位客户需要服务,每位客户的
原创 2022-07-14 17:45:32
44阅读
文章目录1 题目2 解析2.1 题意2.2 思路3 参考代码1 题目1014 Waiting in Line (30分
原创 2022-05-26 02:02:10
74阅读
1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长
原创 2022-11-18 15:59:29
24阅读
1014. Waiting in Line (30)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueSuppose a bank has N windows open for service. There is a yellow l...
原创 2022-10-18 13:52:46
28阅读
1014 Waiting in Line (30 point(s))Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devi
原创 2022-09-15 10:49:31
40阅读
传送门 题意 在一家银行里有n个服务窗口,每个窗口最多有m个人排队。当窗口都满人时,客户就必须在线外等候,当有人完成服务时,便可上去排队。 客户选择服务窗口的标准为:首先选择排队人数少的窗口,在人数相同的情况下,优先选择最小的窗口号。 现在给出k个客户所需的服务时间,以及q个询问,输出每个询问的客户
转载 2020-03-14 15:55:00
59阅读
2评论
Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules
转载 2018-05-31 20:32:00
96阅读
题目链接 Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the customers to wait in line are: The...
原创 2021-07-12 10:17:12
257阅读
 1014 Waiting in Line (30 point(s))Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules for the c
原创 2023-06-09 14:02:34
52阅读
简单模拟题,注意读懂题意就行
转载 2013-10-31 22:03:00
127阅读
2评论
时间限制 400 ms 内存限制 65536 kB 代码长度限制 16000 B 判题程序 Standard 作者 CHEN, Yue Suppose a bank has N windows open for serv
原创 2022-11-09 19:21:46
459阅读
目录
原创 2022-10-28 06:23:32
111阅读
写在前面实现思路结构体封装窗口数据时间归一化(统一为分钟,技巧性处理)S1. 计算、封装总窗口容量。下标取余窗口个数,并初始化窗口的计数时间、出队时间(结构体、完成时间数组)S2. 循环封装剩余队列元素。循环判断哪个窗口先存在出队元素,窗口插入元素需更新出队时间、结束时间(结构体、完成时间数组)S3. 循环打印判断开始时间
原创 2022-08-23 15:52:55
67阅读
#include<iostream>#include<cstdio>#include<algorithm>#include<queue>#include<strin
原创 2022-09-26 09:57:07
18阅读
                                                                     1014 Waiting in Line (30 分)   Suppose a bank has N windows open for service. There is a yellow line in front of the windo
原创 2021-08-30 16:22:44
52阅读
  • 1
  • 2
  • 3
  • 4
  • 5