#include #include #include #include #define THRESH 2000 int main(){ int i; int remtime; int prpnum; int buffer[THRESH]; scanf(" %d", &remtime); scanf(" %d", &prpnum); // printf("time: %d, prpnum: %d\n", time, prpnum); int data[prpnum]; for(i=0; i < prpnum; i++) { scanf(" %d", &data[i]); } int timesum = 0; for(i=0; i< prpnum; i++) { timesum += data[i]; } double answer = ceil((double)timesum/(double)remtime); printf("%d\n", (int)answer); }