PAT Practice [1020 月饼]
PAT (Basic Level) Practice 1020 月饼
#include <cstdio>
#include <algorithm>
struct moon_cake{
double stock;
double price;
double unit_price;
} cake[1001];
bool cmp(moon_cake A, moon_cake B) {
return A.unit_price > B.unit_pric
原创
2020-08-28 16:31:34 ·
114 阅读 ·
0 评论