1040

// 部分结果超时,怎么处理?
//

#include "stdafx.h"
#include
#include


using namespace std;

unsigned count_pat(string &tmp)
{
    unsigned count = 0;
    for (size_t i = 0; i < tmp.size(); ++i)
    {
        if (tmp[i] == 'P')
        {
            for(size_t j=i+1;j> str;

    cout << count_pat(str);

    system("pause");
    return 0;
}

你可能感兴趣的:(1040)