摘要: 感觉我的代码是没有错的,哈哈哈....其中abs不知道老是用不了,结果只能用最土的方法了啊a>b?a:b;但是没有通过#include "iostream"#include "cmath"#include "algorithm"using namespace std;struct student{ int x,y,count,time;}num[10000];struct{ int time,count;}dp[10000];int cmp(student a,student b){ return a.count>b.co 阅读全文
posted @ 2013-08-30 14:24 龙城星 阅读(121) 评论(0) 推荐(0) 编辑
摘要: 我也不知道我的代码错在哪里#include "iostream"using namespace std;struct{ int n,p;}thing[10000];int main(){ int ncase,n,i,j,num,total; cin>>ncase; while(ncase--){ cin>>n; for(i=1;i>thing[i].n>>thing[i].p;} num=0;total=0; for(i=1;ithing[i].n*thing[i+1].p&&i!=n){ num+=thing[i] 阅读全文
posted @ 2013-08-30 09:54 龙城星 阅读(145) 评论(0) 推荐(0) 编辑