摘要: 水题 题意 分糖果 每次最多8个 多出来的可以遗留到下一天 注意下一天少于8个要清0; 代码: #include<bits/stdc++.h>using namespace std;int n,k;int q,b,ok;int a;long long sum;int main(){ cin>>n>> 阅读全文
posted @ 2017-08-13 12:05 sortmin 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 题意给定一个长方形的范围;从给定的长方形中找两个占据面积最大的 wa多次 注意各个x,y的结合写错。。 代码: #include<bits/stdc++.h>using namespace std;int n;struct node{ int x; int y;}ma[105];int main() 阅读全文
posted @ 2017-08-13 00:06 sortmin 阅读(208) 评论(0) 推荐(0) 编辑