diff --git a/du2/.program.c.swl b/du2/.program.c.swl deleted file mode 100644 index ee5b49d..0000000 Binary files a/du2/.program.c.swl and /dev/null differ diff --git a/du2/.program.c.swm b/du2/.program.c.swm deleted file mode 100644 index 0339d09..0000000 Binary files a/du2/.program.c.swm and /dev/null differ diff --git a/du2/program.c b/du2/program.c index 7360311..e5aaff7 100644 --- a/du2/program.c +++ b/du2/program.c @@ -11,6 +11,8 @@ int main(){ int value = 0; int r = scanf("%d",&value); if (r == 1){ + if(r < 0 && r > 1000) + continue; results[i] = value; if(max < results[i]){ max = results[i];