Search found 2 matches
- Tue Feb 17, 2009 3:40 am
- Forum: Volume 5 (500-599)
- Topic: 591 - Box of Bricks
- Replies: 80
- Views: 21636
Re: 591
I got RE why? thanks everyone! :wink: #include <stdio.h> #include <stdlib.h> int compare (const void * a, const void * b); int compare (const void * a, const void * b) //compara inteiros { return ( *(int*)a - *(int*)b ); } int main () { int i,j,k,temp; int quantidade = 0; int vetor[55]; int quantum ...
- Mon Feb 09, 2009 7:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10055 - Hashmat the Brave Warrior
- Replies: 166
- Views: 72207
why wa?
why WA? #include<stdio.h> int main() { double a,b,c; while(scanf("%lf %lf" ,&a ,&b)==2) { if(a>b) { c = a - b; printf("%0.lf\n",c); } if(a<b) { c = (b - a); printf("%0.lf\n",c); } } return 0; } it returns 4294967296 on 4294967296 0 and vice-versa.. :roll: thanks!