杭电 1018 无法AC代码:#include#include#include#define pi 3.14159265using namespace std;int main(){int N;double t;cin>>N;while(N--){int num;cin>>num;t = (int)((num*log(num) - num + 0.5*log(2*num*pi))/log(10))+1;cout
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 23:36:59
杭电 1018 无法AC代码:#include#include#include#define pi 3.14159265using namespace std;int main(){int N;double t;cin>>N;while(N--){int num;cin>>num;t = (int)((num*log(num) - num + 0.5*log(2*num*pi))/log(10))+1;cout
杭电 1018 无法AC
代码:
#include
#include
#include
#define pi 3.14159265
using namespace std;
int main()
{
int N;
double t;
cin>>N;
while(N--)
{
int num;
cin>>num;
t = (int)((num*log(num) - num + 0.5*log(2*num*pi))/log(10))+1;
cout
杭电 1018 无法AC代码:#include#include#include#define pi 3.14159265using namespace std;int main(){int N;double t;cin>>N;while(N--){int num;cin>>num;t = (int)((num*log(num) - num + 0.5*log(2*num*pi))/log(10))+1;cout
#include
#include
#include
#define pi 3.14159265
using namespace std;
int main()
{
int N;
int t;
cin>>N;
while(N--)
{
int num;
cin>>num;
t = (int)((num*log(num*1.0) - num + 0.5*log(2*num*pi))/log(10.0))+1;
cout