Search found 2 matches

by expecto_petronum
Sat Apr 07, 2012 4:58 am
Forum: Volume 3 (300-399)
Topic: 378 - Intersecting Lines
Replies: 48
Views: 22055

UVA 378

Someone please help me with my code. Its got Wrong answer, i donot understand why? #include<stdio.h> int main() { printf("INTERSECTING LINES OUTPUT\n"); int n,x_1,x_2,x_3,x_4,y_1,y_2,y_3,y_4; double d,d1,d2,t1,t2,x,y; scanf("%d",&n); while(n>0) { scanf("%d%d%d%d%d%d%d%d&...
by expecto_petronum
Mon Oct 31, 2011 10:58 am
Forum: Volume 100 (10000-10099)
Topic: 10035 - Primary Arithmetic
Replies: 328
Views: 94223

UVA 10035

I am getting wrong answer. I can't found any problems. Can any one help me? #include<iostream> using namespace std; int main() { long long unsigned num1,num2,rem1,rem2,q1,q2; int carry,p_carry; //scanf("%u%u",&num1,&num2); cin>>num1>>num2; while(num1!=0 && num2!=0) { q1=num...

Go to advanced search