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:大家帮忙看一下 实在挑不出错来 我是用多重背包解的报 WA

Posted by JustForU at 2010-09-23 19:36:56 on Problem 1276
In Reply To:大家帮忙看一下 实在挑不出错来 我是用多重背包解的报 WA Posted by:DeSMoon at 2009-07-21 11:56:25
啊我同错了n次。。
	while(cin>>cash>>n){
		int num=0;
		if(n==0||cash==0) {cout<<'0'<<endl; continue;}

这样一旦出现0以后之后的case就以接下来的输入的数据作为新的cash和n了。。。

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