Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
贴代码,水题#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator