Search found 2 matches

by jayd
Mon Apr 21, 2003 1:56 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 21443

it should get a presentation error as you say

but I get a wrong answer >< i don't know why
by jayd
Sat Apr 19, 2003 7:50 pm
Forum: Volume 7 (700-799)
Topic: 729 - The Hamming Distance Problem
Replies: 54
Views: 21443

729 why I got a wrong answer??

this is my code
[/cpp]

#include <stdio.h>
#include <algorithm>
#include <string>
using namespace std;
void main(void)
{
string a = "";
char input[80] = "";
int total = 0, one = 0, i=0,j=0,loop=0;
//fgets(input, 80, stdin);
//loop = atol(input);
scanf("%d", &loop);
for(j=0;j<loop;j++){
a ...

Go to advanced search