样例是对的,但还是只有40分(c++)
查看原帖
样例是对的,但还是只有40分(c++)
540534
Dead_cells楼主2022/7/12 18:49
#include<bits/stdc++.h>
using namespace std;
int main(){
	double t, x;
	int n, y;
	cin >> t >> n;
	y = n * 2;
	x = t / n;
	cout << x << setprecision(3) << endl << y;
	return 0;
}

2022/7/12 18:49
加载中...