#include #include #define LMAX 10000 int cmpint (const void * a, const void * b) { return ( *(int*)a - *(int*)b ); } int main(void) { int i, len, bnum, sum, bwidth[LMAX]; scanf("%d", &len); scanf("%d", &bnum); for (i=0;i len) { sum -= bwidth[i]; printf("%d\n", i); break; } } }