QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#594054 | #9307. Clock Master | zqx# | WA | 2ms | 4128kb | C++23 | 442b | 2024-09-27 18:31:08 | 2024-09-27 18:31:09 |
Judging History
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'