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

Re:水到390

Posted by qylsw at 2010-07-17 10:18:56 on Problem 3030
In 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:
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