QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#516122#9136. Exponent Calculatorarnold518#WA 0ms3616kbC++17726b2024-08-12 13:53:482024-08-12 13:53:48

Judging History

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

  • [2024-08-12 13:53:48]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3616kb
  • [2024-08-12 13:53:48]
  • 提交

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 << "21\n";
    cout << "$1 = $0 / 32768\n";
    cout << "$0 = 1 + $1\n";
    cout << "$2 = $0 + 2\n";
    cout << "$2 = $2 * $1\n";
    cout << "$2 = $2 * $1\n";
    cout << "$2 = $2 / 6\n";
    cout << "$0 = $0 + $2\n";
    for(int i=0; i<15; i++) cout << "$0 = $0 * $0\n";
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3616kb

input:

input

output:

21
$1 = $0 / 32768
$0 = 1 + $1
$2 = $0 + 2
$2 = $2 * $1
$2 = $2 * $1
$2 = $2 / 6
$0 = $0 + $2
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0

result:

wrong answer Wrong operation = / in command #1 (in 1-indexation)