计蒜客题库六

  • 第六题
#include 
#include 
using namespace std;
int main() {
    int N;
    string *result = new string[100];
    int cc = 0;
    do {
        cin >> N;
        int L,W,H;
        int t_max=-1;
        int t_min=-1;
        string M,maxname,minname;
        for (int i = 0; i < N; i++) {
            cin >> L >> W >> H >> M;
            int temp = L*W*H;
            if(t_min == -1) {
                t_min = temp;
                minname = M;
            }
            if(temp>t_max) {
                t_max = temp;
                maxname = M;
            }
            if(temp

你可能感兴趣的:(计蒜客题库六)