Search found 1 match

by A.D.S
Thu Jan 02, 2014 2:54 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 77883

Hashmat the Brave Warrior

hi
i'm new to programming contest.
what's wrong with my code:

#include<stdio.h>
#include<stdlib.h>
int main()
{
long long int num1;
long long int num2;
while(scanf("%lld %lld",&num1,&num2) !=EOF)
printf("%lld\n",abs(num2-num1));
return 0;
}

the UVA's gcc returns wrong answer.

Go to advanced search