677A
#include <stdio.h>
int main()
{int n, h;scanf("%d%d", &n, &h);int temp, width=0;int i;for(i=0; i<n; ++i){scanf("%d", &temp);if(temp<=h)++width;elsewidth+=2;}printf("%d\n", width);return 0;
}
轉(zhuǎn)載于:https://www.cnblogs.com/ozxics/p/11131173.html
總結(jié)