#include #include int cmp(const void* a, const void* b) { return (*(int*)a - *(int*)b); } int main() { int N, L, i; int *W = NULL; scanf("%d", &L); scanf("%d", &N); W = (int*)malloc(sizeof(int)*N); for (i=0; i L) { break; } } int ans = i; printf("%d\n", ans); free(W); W = NULL; return 0; }