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:水到390In Reply To:水到390 Posted by:chenyukang at 2010-06-06 23:58:53 #include<iostream> using namespace std; int main() { int n; scanf("%d",&n); while(n--){ int a,b,c; scanf("%d%d%d",&a,&b,&c); if(a>b-c) printf("do not advertise\n"); else{ if(a<b-c)printf("advertise\n"); else printf("does not matter\n"); } } return 0; } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator