0
已解决
王泽轩
资深天翼
资深天翼
#include<iostream>
#include<cstdio>
#include<iomanip>
#include<math.h>
#include<cmath>
#include<string>
using namespace std;
int a[10000],b[10000],c[10000];
int main(){
int d,e,f,g,h=0;
cin>>g>>d>>e>>f;
for(int i=0;i<g;i++){
cin>>a[i];
cin>>b[i];
cin>>c[i];
}
int i=0;
while(h<d*e*f){
h+=a[i]*b[i]*c[i];
i++;
}
cout<<i-1;
}
爆0!!!!!!!!!!!!!!!!!!