Search found 3 matches

by incin
Wed Dec 25, 2002 4:10 am
Forum: Volume 100 (10000-10099)
Topic: 10068 - The Treasure Hunt
Replies: 31
Views: 6263

10068 - The Treasure Hunt

Ive tested my program, it seems to work fine. It does find a slightly different path, but it has the same calorie expenditure and goes to each treasure in the same order. anyone have a good test data? am I to assume the total calories might exceed 2^32? Any help would be greatly appreciated.
by incin
Wed Dec 25, 2002 4:02 am
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46554

i use visual c++ 7, it doesn't support the long long. I think that the double is working for me because doubles are 64 bit in 'microsoft'. Do you have a way for me to use the long long?
by incin
Tue Dec 24, 2002 5:55 pm
Forum: Volume 100 (10000-10099)
Topic: 10055 - Hashmat the Brave Warrior
Replies: 166
Views: 46554

This gives WA, but it works for me,
btw, ive never heard of 'long long',
it isnt avaliable to me

[cpp]
int main() {
double a,b;
while (cin >> a) {
cin >> b;
if (a>b) printf("%.0f\n",a-b);
else printf("%.0f\n",b-a);
}
return 0;
}[/cpp]

Go to advanced search