您喜欢在几分钟内观看完建筑或其他大型工作的时光倒流吗?让我们在这里做一个。
我们将看挖掘机的采石场,每天拍摄照片以查看整个进度。您的任务是向我们展示此过程!
采石场由其第一层的宽度定义。
挖掘机的定义是一天之内的挖掘能力。
输入值
采石场的宽度。整数,始终> =1。
挖掘机挖掘速度。整数,始终> = 1。
输出量
每天采石场的进度。从平坦的未接触地面开始,直至完成采石场。
规则
在最后一天,挖掘的单位可能少于挖掘机的能力。过多的工作不会在任何地方使用,因此您应该只输出完全挖掘的采石场。
必须整天都在输出中显示进度。您无法清除或覆盖输出中的前一天进度。
每天输出的尾随换行符和前导换行符的数量均可接受。
这是代码高尔夫,因此请使代码尽可能紧凑。
澄清说明
工作从平坦的地面开始。所显示地面的长度是采石场的宽度+2。因此,在采石场的两侧始终会有一个下划线字符。
__________
挖掘采石场的宽度看起来像这样:
_ _
\ /
\ /
\ /
\/
像这样的奇数宽度
_ _
\ /
\ /
\ /
V
以下是采石场进度的示例:
_ _______
V dug 1 unit
_ ______
\/ dug 2 units
_ ___
\___/ dug 5 units
_ _
\ __/ dug 10 units
\_/
完整进度示例。采石场宽度:8.挖掘机速度:每天4台。
__________
_ _____
\__/
_ _
\______/
_ _
\ __/
\__/
_ _
\ /
\ __/
\/
_ _
\ /
\ /
\ /
\/
角柜
挖掘机将需要在最后一天准确挖掘其能力(速度)
Width: 7, Speed: 3
Width: 10, Speed: 4