## Search found 38 matches

Mon Dec 29, 2003 11:49 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 16806

### 729 : Help Anyone..

Cannot figureout what is wrong.....Plz help I have taken care of multiple inputs [cpp] # include<iostream.h> int n,h,a[100]; int i,head; int nt; int main() { cin>>nt; while(nt--) { cin>>n>>h; for(i=0;i<=n;i++) { if(i<h) a =1; else a =0; } head=h-1; while(1) { if(a[n]==1) break; for(i=0;i<n;i++) { co...
Sun Dec 28, 2003 9:02 pm
Forum: Volume 1 (100-199)
Topic: 130 - Roman Roulette
Replies: 25
Views: 2921

### 130: Why WA Need Help plzzzzzz....

Why WA... i have used linked list [cpp] /* @JUDGE_ID: 40270EF 130 C++ "No special algo:)" */ # include<iostream.h> struct person { struct person *l; struct person *r; int n; }*first=NULL,*temp=NULL; void insertfront(int n) { struct person *a=new person; a->n=n; a->l=NULL; a->r=NULL; if(fir...
Sat Dec 27, 2003 8:37 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 14889

### Easy sol to endian...

Removed.. Thx Shamim for the suggestion
Sat Dec 27, 2003 8:36 pm
Forum: Volume 5 (500-599)
Topic: 594 - One Little, Two Little, Three Little Endians
Replies: 46
Views: 14889
Try this code. this is very easy problem
[cpp]
Code removed.
Thx Shamim for the suggestion
[/cpp]

Hope u like the code
Mon Dec 15, 2003 1:47 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 29527

### I tried it Abhishek

i tried that but i still get wa...
i am angry.........

anyways thx for the help..
did u get accepted..

plz try with my code itself...

Aakash
Mon Dec 15, 2003 1:31 pm
Forum: Volume 3 (300-399)
Topic: 386 - Perfect Cubes
Replies: 53
Views: 8576

### 386 - Perfect Cubes

What is wrong with this code plz help.. i thought this was a cool logic but got wa.... It seems to work and gives me 223 answers.. Plz help... Plzz help [cpp] # include<iostream.h> long a; long init,temp; int i,j1,j2,j3; long cube[201]; long sol[300][3]; long sc; int find(int x,int y,int z) { for(in...
Sat Dec 13, 2003 11:34 pm
Forum: Volume 1 (100-199)
Topic: 119 - Greedy Gift Givers
Replies: 145
Views: 29527

### Problem 119: Plz help me i got wrong answer

can anyone plz tell me what is wrong with this code.. It works on the input provided.. Please let me know.... Thx in advance [cpp]/* @JUDGE_ID: xxxxxxx 119 C++ "No special algo:)" */ # include<iostream.h> # include<string.h> char a[100][150]; int money[100],cash; int n,i; char name[200]; i...
Thu Dec 11, 2003 3:46 pm
Forum: Volume 2 (200-299)