Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

贴代码,水题

Posted by 100610111 at 2015-03-24 15:39:47 on Problem 2027
#include <iostream>
#include <vector>
using namespace std;
int main()
{
    int m,n;
    vector<int> val;
    cin>>m;
    while(cin>>n)
        {
            val.push_back(n);
        }
    for(vector<int>::size_type ix=0;ix<2*m;ix=ix+2)
          if(val[ix]>=val[ix+1])
            cout<<"MMM BRAINS"<<endl;
          else
            cout<<"NO BRAINS"<<endl;

    return 0;
}

Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator