QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#545805 | #9136. Exponent Calculator | Mu_Silk | WA | 0ms | 3860kb | C++20 | 1.4kb | 2024-09-03 17:23:29 | 2024-09-03 17:23:33 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
double ex(double x){
double tt=1024;
double ans=0;
double p=1;
for(int i=0;i<=7;i++){
ans+=pow(x/tt,i)/p;
p*=(i+1);
}
return pow(ans,tt);
}
void solve(){
// for(int i=-20;i<=20;i++){
// cout<<(exp(i)-ex(i))/exp(i)<<"\n";
// }
cout<<fixed<<setprecision(15);
cout<<"25\n";
cout<<fixed<<"$1 = $1 * "<<1.0/256<<"\n";
cout<<fixed<<"$0 = $1 * "<<1.0/7<<"\n";
cout<<fixed<<"$0 = $0 + "<<1.0/6<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0/5<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0/4<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0/3<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0/2<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0<<"\n";
cout<<"$0 = $1 * $0\n";
cout<<fixed<<"$0 = $0 + "<<1.0<<"\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
cout<<"$0 = $0 * $0\n";
}
int main(){
ios::sync_with_stdio(0);
cin.tie(0);cout.tie(0);
int n=1;
//cin>>n;
while(n--)solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3860kb
input:
input
output:
25 $1 = $1 * 0.003906250000000 $0 = $1 * 0.142857142857143 $0 = $0 + 0.166666666666667 $0 = $1 * $0 $0 = $0 + 0.200000000000000 $0 = $1 * $0 $0 = $0 + 0.250000000000000 $0 = $1 * $0 $0 = $0 + 0.333333333333333 $0 = $1 * $0 $0 = $0 + 0.500000000000000 $0 = $1 * $0 $0 = $0 + 1.000000000000000 $0 = $1 ...
result:
wrong answer x=-20,jury=2.06115e-09,participant=1.66612e-35,error=1