我就是用了两个函数嘛,怎么就成TLE战神了QAQ
#include<bits/stdc++.h>
using namespace std;
int classic(int x,int y,int z)
{
if((x<60 and y>=60 and z>=60) or (x>=60 and y<60 and z>=60) or (x>=60 and y>=60 and z<60))
cout<<"PASS"<<endl;
else
cout<<"FAIL"<<endl;
}
int unique(int i,int j,int k,int l,int m,int n)
{
if((i*l+j*m+k*n)/(l+m+n)>=60)
cout<<"PASS"<<endl;
else
cout<<"FAIL"<<endl;
}
int main()
{
int a,b,c,d,e,f;
cin>>a>>b>>c>>d>>e>>f;
classic(a,b,c);
unique(a,b,c,d,e,f);
return 0;
}