## 1902. Neo-Venice

Time limit: 1.0 second
Memory limit: 64 MB
Mars was the first planet colonized by humans. After a long terraforming process its appearance has changed completely. From the red desert it has become a blue planet covered by water. There was so much water that some of the cities were built not on land, but on stilts over the water. The most famous one was Neo-Venice. There are canals instead of roads and numerous gondolas instead of cars in this city. All this attracts huge crowds of tourists from the Earth to Neo-Venice. The most popular activities among them are boat excursions. Gondolas are steered by young girls who can not only bring tourists through the canals but also tell them about the history of the city or sing a song along the way. Due to their love for the water these girls are called undines.
The undine Anna has just received a license to steer a gondola. Tomorrow she will carry tourists on excursion to the St. Peter's canal. This canal is narrow, but many popular routes are passing through it, so there are always a lot of gondolas. Anna is afraid that her excitement may lead to a crash with another gondola during the excursion. However, all undines are trained to steer the gondola smoothly and with the same speed, so the only threat comes from gondolas sailing in the opposite direction. Anna knows the schedule of her colleagues and when she herself will enter the canal. Now she wants to know exactly when she will encounter other gondolas, in order to be extra careful around them.

### Input

The first line of the input contains integers  nt and  sn is the number of undines who will go through the St. Peter’s canal in the opposite direction (1 ≤  n ≤ 100).  t is the time needed for the gondola to sail through the entire length of the canal (1 ≤  t ≤ 100).  s is the moment of time at which the Anna's gondola will enter the canal (360 ≤  s ≤ 1200). The second line contains integers  s 1, …,  s n that define the moments of time at which the gondolas of Anna’s colleagues will appear on the opposite side of the canal.  s −  t <  s 1 < … <  s n <  s +  t.

### Output

Output  n numbers that are the points of time when Anna will meet her colleagues, with absolute or relative error no more than 10 −6. Numbers should be separated with spaces or line feeds.

### Sample

input output
2 60 600
600 630

630.000000
645.000000

AC代码：
#include <stdio.h>
int main(){
int n,t,s,a;
double tt;
scanf("%d%d%d",&n,&t,&s);
while(n--){
scanf("%d",&a);
tt=(s+t+a)/2.0;
printf("%.6lf\n",tt);
}
return 0;
}

### [ACM] POJ 3273 Monthly Expense （二分解决最小化最大值）_larger minimum_同学少年的博客-程序员宅基地

Monthly ExpenseTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 14158 Accepted: 5697DescriptionFarmer John is an astounding accounting wizard and has r

### 手机写python爬虫_python爬虫——分页爬取京东商城商品信息（手机为例）-Go语言中文社区..._weixin_39727005的博客-程序员宅基地

1、最近刚开始学习python 写了个爬虫练习，感觉主要是得会用F12查询网站结构代码。还涉及到反爬虫，每个网站都不一样，拿到的解析出的json数据格式也不同。得有些Web知识的基础才行。2、上代码import urllib.requestimport time# xpath lxml第三方包 将html转化为树形结构from lxml import etree# re系统包 正则im...

### python的pillow给图片加文字_python PIL（pillow）图像处理-图片上添加文字_weixin_39682412的博客-程序员宅基地

from PIL import Image, ImageDraw, ImageFontdef gen_img(size=None):if size is None:size = 400#生成大小为400x400RGBA是四通道图像，RGB表示R，G，B三通道，A表示Alpha的色彩空間image = Image.new(mode='RGBA', size=(400, 400), color=(25...

### matlab可以做什么项目,关于matlab:做开源界的MATLAB这个项目需要更多热爱开源的你加入..._weixin_39517241的博客-程序员宅基地

MATLAB 和 Mathematica、Maple 并称为三大数学软件。它在数学类科技应用软件中在数值计算方面名列前茅。MATLAB 能够进行矩阵运算、绘制函数和数据、实现算法、创立用户界面、连贯其余编程语言的程序等。前一段时间 MATLAB 进入实体清单实际，也让局部国内开发者有了危机意识，明天介绍的这款我的项目就是试图打造「开源界的 MATLAB」，目前我的项目刚刚起步，还须要更多酷爱开源或...

### lns linux服务器,LAC与LNS是什么服务器_weixin_39624716的博客-程序员宅基地

LAC：location area code 位置区码 (移动通信系统中)。LNS：表示L2TP网络服务器(L2TP Network Server)。LAC是为寻呼而设置的一个区域，覆盖一片地理区域，初期一般按行政区域划分(一个县或一个区),现在很灵活了，按寻呼量划分。LNS是PPP端系统上用于处理L2TP协议服务器端部分的设备。它作为L2TP隧道的另一侧端点，是LAC的对端设备，是被LAC进行隧...