2.1 USACO 2.1 Hamming Codes(반복) #include <stdio.h> #define DEBUG 1 #define TESTCASES 9 int codewords, numOfBits, hammingDist; int max; int result[257]; int countBit1(int num){ int numOfBit1 = 0; while (num){ num &= (num - 1); numOfBit1++; } return numO... 귀속USACODFSCodes2.1Hamming
USACO 2.1 Hamming Codes(반복) #include <stdio.h> #define DEBUG 1 #define TESTCASES 9 int codewords, numOfBits, hammingDist; int max; int result[257]; int countBit1(int num){ int numOfBit1 = 0; while (num){ num &= (num - 1); numOfBit1++; } return numO... 귀속USACODFSCodes2.1Hamming