W_churchill @ 2020-05-08 19:33:07
else if (T == 8)
{
cout<<5*2*3.141593<<" ";
cout<<5*5*3.141593<<" ";
cout<<1.0*double(4/3)*3.141593*125.0<<" ";
return 0;
}
else if (T == 13)
{
int sum=4*4*4*3.141593;
sum+=10*10*10*3.141593;
cout<<prime(sum)<<endl;
return 0;
}
为什么T8和T13一直过不了啊???
小学生的我太菜了
by tangrunxi @ 2020-05-08 19:34:37
@Qinclude 请直接使用 cout 输出答案,每行一个数字。
by Loser_King @ 2020-05-08 19:35:13
#13
为什么是int存啊,显然double啊
by W_churchill @ 2020-05-08 19:35:26
第13问输出100000
qwq
by 小个子 @ 2020-05-08 19:36:18
#13
为什么是int存啊,显然double啊
by tangrunxi @ 2020-05-08 19:36:43
@Qinclude #13要用到小数,用float
by 小个子 @ 2020-05-08 19:37:33
@tangrunxi double 更好吧
by W_churchill @ 2020-05-08 19:37:47
@tangrunxi float还是输出1000000
by Novice233 @ 2020-05-08 19:37:54
用long double啊
by tangrunxi @ 2020-05-08 19:38:16
@小个子 对 懒得用double
by tangrunxi @ 2020-05-08 19:38:31
@Qinclude 那就要double 这题这么卡精度?