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:大家帮忙看一下 实在挑不出错来 我是用多重背包解的报 WAIn 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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator