样例都是对的,为什么有一个点wa了呢?只得了95分
查看原帖
样例都是对的,为什么有一个点wa了呢?只得了95分
1576650
违规用户名1576650楼主2024/12/14 18:32
#include<bits/stdc++.h>
using namespace std;

int main()
{
	float k,c,f;
	cin>>k;
	c = k - 273.15;
	f = c * 1.8 + 32;
	if(f > 212)
	{
		cout<<"Temperature is too high!";
	}
	else
	{
		printf("%.2f ",c);
		printf("%.2f",f);
	}
	return 0;
}

2024/12/14 18:32
加载中...