QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#594054#9307. Clock Masterzqx#WA 2ms4128kbC++23442b2024-09-27 18:31:082024-09-27 18:31:09

Judging History

你现在查看的是最新测评结果

  • [2024-09-27 18:31:09]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:4128kb
  • [2024-09-27 18:31:08]
  • 提交

answer

#include<bits/stdc++.h>
#define AC return 0;
#define int long long 
#define pii pair<int,int>
#define all(tar) tar.begin(),tar.end()
const int maxx=2e5+5;
const int mod=998244353; 
using namespace std;
int n,m,t;
signed main(){
   ios::sync_with_stdio(false);
   cin.tie(0);
   cout.tie(0);cout.setf(ios::fixed);
   int T;cin>>T;
   while(T--){
    cin>>n;
    cout<<setprecision(8)<<log(n/2*(n/2+1))<<'\n';
   }
   AC
}   

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 4128kb

input:

3
2
7
10

output:

0.69314718
2.48490665
3.40119738

result:

ok 3 numbers

Test #2:

score: -100
Wrong Answer
time: 2ms
memory: 4056kb

input:

5000
580
4555
4654
1420
53
1076
1226
2733
2285
348
2104
2293
3447
4208
710
307
1763
1142
3027
2151
3182
1546
3398
867
2380
830
4211
3117
3058
2251
1890
3961
4003
3991
4167
4976
1765
3235
2644
4070
4644
3645
875
3005
4769
4934
3846
2941
255
946
4164
1372
1193
3056
4472
508
3949
2473
4490
88
4014
2953...

output:

11.34320419
15.46166721
15.50509997
13.13193740
6.55393340
12.57757413
12.83835986
14.44001588
14.08194805
10.32384127
13.91784691
14.08893801
14.90422469
15.30366632
11.74704852
10.06739052
13.56324968
12.69652820
14.64436015
13.96108168
14.74486439
13.30185092
14.87617865
12.14378226
14.16425716
1...

result:

wrong answer 1st numbers differ - expected: '59.8085219', found: '11.3432042', error = '0.8103413'