1
0

Q2525.h 618 B

1234567891011121314151617181920212223242526272829
  1. //
  2. // Created by 李洋 on 2023/10/20.
  3. //
  4. #ifndef LEECODE_C_Q2525_H
  5. #define LEECODE_C_Q2525_H
  6. #include <string>
  7. using namespace std;
  8. class Q2525 {
  9. public:
  10. string categorizeBox(int length, int width, int height, int mass) {
  11. if (length >= 10000 || width >= 10000 || height >= 10000 || (long long)length * width * height >= 1000000000) {
  12. if (mass >= 100) {
  13. return "Both";
  14. } else {
  15. return "Bulky";
  16. }
  17. }
  18. if (mass >= 100) {
  19. return "Heavy";
  20. }
  21. return "Neither";
  22. }
  23. };
  24. #endif //LEECODE_C_Q2525_H
备用站点 当前处于降级运行的备用站点,仅供应急访问,数据和功能可能不是最新。