华为2016校园招聘上机笔试题-最高分是多少

#include
using namespace std;
int FindMax(vector& vec,int A,int B)
{
    int MaxValue=vec[A-1];
    for(int i=A;iMaxValue)
        {
            MaxValue=vec[i];
        }
    }
    return MaxValue;
}
int main()
{
    ios::sync_with_stdio(false);
    int N,M;
    int tmp;
    int MaxValue;
    int A,B;
    char op;
    vector vec;
    while(cin>>N>>M)
    {
        vec.clear();

        for(int i=0;i>tmp;
            vec.push_back(tmp);
        }
        while(M--)
        {
            cin>>op;
            //cout<>A>>B;
           
            if(op=='Q')
            {
                 if(B

 

你可能感兴趣的:(春招笔试机试)