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: 21449
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: 21449
I still got Wrong Answer
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 ...
#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 ...
- Sun Aug 04, 2002 3:18 pm
- Forum: Volume 7 (700-799)
- Topic: 729 - The Hamming Distance Problem
- Replies: 54
- Views: 21449
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 ...
#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 ...
- Sun Jun 30, 2002 7:05 am
- Forum: Volume 4 (400-499)
- Topic: 495 - Fibonacci Freeze
- Replies: 222
- Views: 59973
- Thu Apr 25, 2002 2:28 pm
- Forum: Volume 3 (300-399)
- Topic: 382 - Perfection
- Replies: 95
- Views: 35302
382 - Perfection
If input is "1 0", what is output?
Thanks for your help.
Thanks for your help.
- Wed Apr 17, 2002 10:20 am
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65247
- Tue Apr 16, 2002 11:29 pm
- Forum: Volume 1 (100-199)
- Topic: 103 - Stacking Boxes
- Replies: 200
- Views: 50323
- Tue Apr 16, 2002 11:27 pm
- Forum: Volume 1 (100-199)
- Topic: 116 - Unidirectional TSP
- Replies: 226
- Views: 65247
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.
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: 50323