CF677A Vanya and Fence
题目描述
有n个人,如果这个人的高度大于k,那么马路宽度+2,否则+1,输出最终的宽度值。
输入格式
第一行是n和k
第二行是n个数(这个人的高度)
输出格式
输出最终的宽度值。
感谢@666yuchen 提供的翻译和@王轶凡lg2018 提供的建议
说明/提示
In the first sample, only person number $ 3 $ must bend down, so the required width is equal to $ 1+1+2=4 $ .
In the second sample, all friends are short enough and no one has to bend, so the width $ 1+1+1+1+1+1=6 $ is enough.
In the third sample, all the persons have to bend, except the last one. The required minimum width of the road is equal to $ 2+2+2+2+2+1=11 $ .