题目输入 LATEX 炸了。
所以我修了一下 LATEX。
效果:
The first line contains four integers n , x , y , p ( 1<=n<=106,0<=x,y<=1018,x+y>0,2<=p<=109 ) which represent the number of mushrooms, the number of minutes after the first replanting, the number of minutes after the second replanting and the module. The next line contains n integers ai which represent the mushrooms' weight in the non-decreasing order ( 0<=ai<=109 ).
Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cin (also you may use %I64d).
源码:
## 输入格式
The first line contains four integers $ n $ , $ x $ , $ y $ , $ p $ ( $ 1<=n<=10^{6},0<=x,y<=10^{18},x+y\gt0,2<=p<=10^{9} $ ) which represent the number of mushrooms, the number of minutes after the first replanting, the number of minutes after the second replanting and the module. The next line contains $ n $ integers $ a_{i} $ which represent the mushrooms' weight in the non-decreasing order ( $ 0<=a_{i}<=10^{9} $ ).
Please, do not use %lld specificator to read or write 64-bit integers in C++. It is preffered to use cin (also you may use %I64d).