仅#3通过,求调!
查看原帖
仅#3通过,求调!
744858
GalaxyDeepLove楼主2023/8/21 10:19
#include <bits/stdc++.h>
using namespace std;

int a, b, c;
int d, e, f;

int main() {
	cin >> a >> b >> c >> d >> e >> f;
	if(a < 60 or b < 60 or c < 60) cout << "PASS" << endl;
	double g = (a * d + b * e + c * f) / (d + e + f);
	if(g >= 60) cout << "PASS" << endl;
	else if(g < 60) cout << "FAIL" << endl;
	return 0;
}

测评记录

2023/8/21 10:19
加载中...