QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#516145 | #9136. Exponent Calculator | arnold518# | WA | 0ms | 3692kb | C++17 | 777b | 2024-08-12 14:02:24 | 2024-08-12 14:02:26 |
Judging History
answer
#include <bits/stdc++.h>
#define ff first
#define ss second
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
int K=15;
double f(double x)
{
x/=(1<<K);
double a=1+x;
double b=a+2;
b=b*x;
b=b*x;
b=b/6;
a=a+b;
for(int i=0; i<K; i++) a=a*a;
return a;
}
int main() {
cin.tie(0); ios_base::sync_with_stdio(0);
cout << "22\n";
cout << "$0 = $1 * 0.000030518\n";
cout << "$1 = 1 + $0\n";
cout << "$2 = $1 + 2\n";
cout << "$2 = $2 * $0\n";
cout << "$2 = $2 * $0\n";
cout << "$2 = $2 * 0.16666666666667\n";
cout << "$1 = $1 + $2\n";
for(int i=0; i<15; i++) cout << "$1 = $1 * $1\n";
cout << "$0 = $1 + 0\n";
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3692kb
input:
input
output:
22 $0 = $1 * 0.000030518 $1 = 1 + $0 $2 = $1 + 2 $2 = $2 * $0 $2 = $2 * $0 $2 = $2 * 0.16666666666667 $1 = $1 + $2 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 = $1 * $1 $1 ...
result:
wrong answer x=-20,jury=2.06115e-09,participant=-0.00061036,error=296126