## Search found 5 matches

Thu Aug 31, 2006 11:55 am
Forum: Volume 109 (10900-10999)
Topic: 10979 - How Many Triangles?
Replies: 15
Views: 6195

### heeeeeeeeelp

i got WA. the test cases in this post is ok to my code here is my code plz plz someone help me [cod#include<stdio.h> #include<math.h> #include<stdlib.h> int fun(double x1,double x2,double x3,double x4,double y1,double y2,double y3,double y4) { double a1 = y1-y2; int t=0; double b1 = -(x1-x2); double...
Mon Jun 26, 2006 9:07 am
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22848

### thanx

Thanks a lot to mf . I am so for my silly mistake . i got AC
thanks also to emotional blind
Sun Jun 25, 2006 6:33 pm
Forum: Volume 103 (10300-10399)
Topic: 10327 - Flip Sort
Replies: 81
Views: 22848

### plz help

I also got WA . Is my algo.. wrong???? Plz somebody help me :cry: :cry: here is my code: #include<stdio.h> #include<math.h> long long int arr[1001]; int inver_my(int n) { int i,j,c=0; if( n==0 || n==1) return 0; for(i=0;i<n-1;i++) { for(j=i;j<n;j++) { if(arr[i]>arr[j]) { c++; } } } return c; } int m...
Wed Jun 21, 2006 6:46 am
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20747

### Re: 107 WA

[/quote] :cry: :cry: I compile it in turbo C compiler in .cpp file . some of my input and out put is following---- input 1 1 2 1 4 1 1024 1 371293 248832 11 10 1 1 1048576 59049 483736625 481890304 125 64 1 0 64 1 5764801 1679616 100 1 1000 1 10000 1 0 0 out put 0 1 1 3 2 7 10 2047 22621 1840825 1 2...
Tue Jun 20, 2006 5:27 pm
Forum: Volume 1 (100-199)
Topic: 107 - The Cat in the Hat
Replies: 278
Views: 20747

### 107 WA help plz.. :-(

what's wrong with this code .Plz help :cry: #include <stdio.h> //#include <conio.h> //#include <dos.h> //#include <stdlib.h> //#include <string.h> #include <math.h> int main() { //clrscr(); long int t,l; long int cat,hig; int flag=0; while(1) { scanf("%ld %ld",&l,&t); if(t==0 && l==0) break; int N =...