一个'U','G'的序列,每个位置的猜测根据其前N个字符的‘U’or'G'的相对数目中较大(相等时以U猜)的,求猜测的最终的命中率
[解答]
[输出]
make -f "Makefile" CFG=Debug
g++ -c -g -o "Debug/Taobao20091012.o" "Taobao20091012.cpp"
g++ -g -o "Debug/Taobao20091012.exe" Debug/Taobao20091012.o
Debug/Taobao20091012.exe
UGA :U U G G
GUS :U U U U
RAT(N=1): 25%