437 |
#include <stdio.h> |
#include <stdio.h> |
438 |
#include <math.h> |
#include <math.h> |
439 |
int main( int argc, char** argv ) { |
int main( int argc, char** argv ) { |
440 |
int linnum,best; |
int linnum,best,lncnt; |
441 |
double a,b,diff; |
double a,b,diff; |
442 |
best = -16; |
best = -16; |
443 |
while( 1 ) { |
lncnt = 0; |
444 |
|
while( 1 & (lncnt+=1) < 999 ) { |
445 |
scanf("%d", &linnum); |
scanf("%d", &linnum); |
446 |
if (linnum == -1) break; |
if (linnum == -1) break; |
447 |
scanf("%lf", &a); scanf("%lf", &b); |
scanf("%lf", &a); scanf("%lf", &b); |
457 |
} |
} |
458 |
} |
} |
459 |
} |
} |
460 |
|
if (lncnt == 999) best=-29; |
461 |
printf("%d\n", -best); |
printf("%d\n", -best); |
462 |
return 0; |
return 0; |
463 |
} |
} |