1207
1207 

所属分类:Windows编程
开发工具:Visual C++
文件大小:207KB
下载次数:24
上传日期:2014-11-14 14:57:41
上 传 者ffrqw
说明:  Description 本题题意对于书上内容有变动,“设车辆到达服从均匀分布,参数由用户指定”改为“输入数据给出每辆车的到达时间”。 Input Format 第一行含有一个正整数N(1<=N<=20000),代表总车辆数。 第二行到第N+1行,每行包含两个整数p,q.(0<=p<=1,0<=q<=100000)。p代表车辆类型,0代表客车,1代表货车。q代表到达时间(单位为分钟)。 Output Format 输出包含两个数a,b。代表客车和货车的平均等待时间,精确到小数点后三位。
(Description of the meaning of the title for the book title contents are subject to change, " set the vehicle arrives uniformly distributed, the parameters specified by the user" to " input data given vehicle arrival time." Input Format The first line contains a positive integer N (1 < = N < = 20000), represents the total number of vehicles. N+1 second line to the first line, each line contains two integers p, q. (0 < = p < = 1,0 < = q < = 100000). p represents a vehicle type, 0 bus, 1 van. q represents the arrival time (in minutes). Output Format The output contains two numbers a, b. The average wait time on behalf of buses and trucks, accurate to three decimal places.)

文件列表:
1207\1207.cbp (1066, 2014-10-28)
1207\1207.depend (121, 2014-10-19)
1207\1207.layout (139, 2014-10-28)
1207\bin\Debug\1207.exe (944897, 2014-10-19)
1207\main.cpp (2730, 2014-10-19)
1207\obj\Debug\main.o (44245, 2014-10-19)
1207\bin\Debug (0, 2014-10-19)
1207\obj\Debug (0, 2014-10-19)
1207\bin (0, 2014-10-19)
1207\obj (0, 2014-10-19)
1207 (0, 2014-10-28)

近期下载者

相关文件


收藏者