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:Re:呃……水题神马的都是浮云,贴代码 Posted by:miklcct at 2011-08-03 13:41:17 #include <stdio.h> int a, b, c, i, n; int main(){ scanf("%d",&n); for (i = 0; i < n; i++) { scanf("%d%d%d",&a,&c,&b); if (a + b - c) { printf(a + b > c? "do not advertise\n":"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