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 |
Re:呃……水题神马的都是浮云,贴代码In Reply To:呃……水题神马的都是浮云,贴代码 Posted by:speedcell4 at 2011-02-09 13:39:26 #include <iostream> using namespace std; int main() { int n; cin >> n; for(int i = 0; i < n; i++){ int r,e,c; cin >> r >> e >> c; if(r < e-c) cout << "advertise" << endl; if(r == e-c) cout << "does not matter" << endl; if(r > e-c) cout << "do not advertise" << 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