- 博客(2)
- 收藏
- 关注
原创 求子矩阵和
求子矩阵和 题目链接: https://www.acwing.com/problem/content/798/ #include<iostream> using namespace std; const int N=1010; int n,m,q; int a[N][N],s[N][N]; int main(){ scanf("%d%d%d",&n,&m,&q); for(int i=1;i<=n;i++) for(int j=1;j<=m;j+
2021-01-10 17:27:14 173
原创 月饼(简单贪心)
#include #include using namespace std; struct mooncake{ double store; //库存量 double sell; //总售价 double price; //单价 }cake[10010]; bool cmp(mooncake a,mooncake b){ //排序 return a.price>b.price; } int m...
2019-07-25 11:06:47 118
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人