首页 > 牛牛的背包
头像 不勇敢的牛牛君258
发表于 2023-08-22 22:16:06
思路很顺畅,经典贪心 但是可能是我审题问题,基本上我能想到的所有情况我都能通过,但是通过率只有30% 这里分享下我的思路,也麻烦大伙看看有什么问题! #include <math.h> #include <algorithm> #include <cstring> 展开全文
头像 贪心骗样例
发表于 2021-05-13 21:49:31
#include<iostream> #include<algorithm> #include<cstring> using namespace std; struct commodity { int type; int taste; in 展开全文

等你来战

查看全部