3,881
社区成员
发帖
与我相关
我的任务
分享
16
#include<stdio.h>
int main(void)
{
printf("%d\n", sizeof(long double));
return 0;
}
然后这是我做题的代码:
#include<stdio.h>
#include<stdlib.h>
#include<stdbool.h>
int main(void)
{
int N;
long double x, y, u;
bool *R;
scanf("%d", &N);
R=(bool *)calloc(N, sizeof(bool));
for(int j=0;j<N;j++)
{
scanf("%llf %llf %llf", &x, &y, &u);
if(x+y>u) R[j]=true;
else R[j]=false;
}
for(int j=0;j<N;j++)
{
printf("Case #%d: ", j+1);
if(R[j]) puts("true");
else puts("false");
}
free(R);
return 0;
}