Search found 9 matches

Tue Aug 06, 2002 5:23 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15842

Thanks

I got it. Thank you very much......
Mon Aug 05, 2002 5:05 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15842

I still got Wrong Answer...What's going on...I have checked all possible input on my computer, and all answers are right..... Please help me...! #include <stdio.h> #include <iostream.h> #include <math.h> void pri(int no,int n) { int str[16]; int i,k; for(i=0;i<16;i++) str =0; k=15; while(no>0) { str...
Sun Aug 04, 2002 3:18 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15842

729 - The Hamming Distance Problem

I got Wrong Answer....Please Help Me.... #include <stdio.h> #include <iostream.h> #include <math.h> void pri(int no,int n) { int str[16]; int i,k; for(i=0;i<16;i++) str =0; k=15; while(no>0) { str[k--]=no%2; no/=2; } for(i=16-n;i<16;i++) cout<<str ; cout<<endl; } int dis(int no) { int i; i=0; while(...
Sun Jun 30, 2002 7:05 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 32297
while(cin>>n&&n>0)

have to change into while(cin>>n&&n>=0)
Thu Apr 25, 2002 2:28 pm
Forum: Volume 3 (300-399)
Topic: 382 - Perfection
Replies: 95
Views: 20281

382 - Perfection

If input is "1 0", what is output?

Wed Apr 17, 2002 10:20 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 38047
I got it.
Thanks you guys very much.
Tue Apr 16, 2002 11:29 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 21561
Thanks. I got it.
Tue Apr 16, 2002 11:27 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 38047

116-What is lexicographically smallest path?

"If there is more than one path of minimal weight the path that is lexicographically smallest should be output."
Above is from question.

My English is not very good,so I don't understand What is lexicographically smallest path?Can you make an example?

Thanks.
Sat Apr 13, 2002 8:34 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 21561
If input is 6 1, what is answer?