Search found 9 matches

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

Thanks

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

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) { str...
by hsihsiwu
Sun Aug 04, 2002 3:18 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 15570

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(...
by hsihsiwu
Sun Jun 30, 2002 7:05 am
Forum: Volume 4 (400-499)
Topic: 495 - Fibonacci Freeze
Replies: 222
Views: 30517

while(cin>>n&&n>0)

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

382 - Perfection

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

Thanks for your help.
by hsihsiwu
Wed Apr 17, 2002 10:20 am
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35997

I got it.
Thanks you guys very much.
by hsihsiwu
Tue Apr 16, 2002 11:29 pm
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19784

Thanks. I got it.
by hsihsiwu
Tue Apr 16, 2002 11:27 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 35997

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.
by hsihsiwu
Sat Apr 13, 2002 8:34 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 19784

If input is 6 1, what is answer?

Go to advanced search