coolzero wrote: Input:
10 12
10 14
100 200
12 10
Output:
2
4
100
2
Can anyone help?
Tanks
Code: Select all
0 4294967296
2 4294967296
0 4294967295
2 4294967295
Claudio
Moderator: Board moderators
coolzero wrote: Input:
10 12
10 14
100 200
12 10
Output:
2
4
100
2
Can anyone help?
Tanks
Code: Select all
0 4294967296
2 4294967296
0 4294967295
2 4294967295
Well, you print a redundant newline at the beginning of output...59557RC wrote:i got PE from about 50% of my AC problems.can anyone pls tell me why i got PE for this:
#include<stdio.h>
#include<math.h>
int main(void)
{
double a1,a2;
while(scanf("%lf %lf",&a1,&a2)!=EOF) printf("\n%.0lf\n",fabs(a1-a2));
return 0;
}