摘要: P1376 机器工厂 题目描述 小T开办了一家机器工厂,在N(N include using namespace std; int c,y; long long ans = 0; int main() { int n,s; cin n s; int last; for(int i = 1;i c y 阅读全文
posted @ 2019-10-07 17:47 acioi 阅读(607) 评论(1) 推荐(1) 编辑
摘要: P1842 奶牛玩杂技 题目背景 Farmer John 养了N(1 include include using namespace std; const int Max = 50005; struct node { int w,s; }a[Max]; bool cmp(const node x,c 阅读全文
posted @ 2019-10-07 09:00 acioi 阅读(451) 评论(0) 推荐(1) 编辑