样例过了,但为啥是0分?蒟蒻求助
查看原帖
样例过了,但为啥是0分?蒟蒻求助
965334
1_1_1_1_1_1_楼主2023/5/13 19:02

哪位大佬看看

#include<bits/stdc++.h>

using namespace std;

char s[1001];

int main()
{
	int n;
	int i, j = 0;
	double a, b;
	
	cin >> n;
	for(i = 1; i <= n; i++)
	{
		j = 0;
		cin >> s >> a >> b;
		while(s[j] != '\0')
		{
			cout << s[j];
			s[j] = '/0';
			j++;
		}
		cout << " " << a << " ";
		if(b * 1.2 > 600)
		{
			cout << 600;
		}
		else
		{
			cout << b * 1.2;
		}
		cout << endl;
	}
}
2023/5/13 19:02
加载中...