QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#624927#9136. Exponent Calculatorticking_away#WA 0ms3720kbC++201.8kb2024-10-09 16:55:432024-10-09 16:55:44

Judging History

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

  • [2024-10-09 16:55:44]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3720kb
  • [2024-10-09 16:55:43]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
using ui = unsigned int;
using ull = unsigned long long;
using ll = long long;
#define endl '\n'
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int maxn = 2e5 + 10;
const int mod = 1000000007;
#define inl inline
#define fr(i, a, b) for (int i = a; i <= b; i++)
#define ford(i, a, b) for (int i = a; i >= b; i--)
#define forall(i, a) for (auto &i : a)

/**
   ____         ___ _____
  / ___| _   _ / _ \___ /
  \___ \| | | | | | ||_ \
   ___) | |_| | |_| |__) |
  |____/ \__, |\___/____/
         |___/
*/
istream &operator>>(istream &in, vector<int> &v)
{
    for (auto &i : v)
        in >> i;
    return in;
}
ostream &operator<<(ostream &out, vector<int> &v)
{
    for (auto &i : v)
        out << i << " ";
    return out;
}
bool _output = 0;

using db = long double;
db pw[10];
void init()
{
    int x = 1;

    fr(i, 1, 9)
    {
        x = x * i;
        pw[i] = 1.0 / (db)x;
        cout << fixed << setprecision(10) << pw[i] << endl;
    }
}
void solve()
{
    cout << "24\n";
    cout << "$3 = $1 * 0.5\n$2 = $1 * $1\n$0 = $1 + $3\n$3 = $2 * 0.1666666667\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0416666667\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0083333333\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0013888889\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0001984127\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0000248016\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0000248016\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0000248016\n$2 = $1 * $2\n$0 = $0 + $3\n$3 = $2 * 0.0000027557\n$2 = $1 * $2\n$0 = $0 + $3\n";
}
signed main()
{
    // init();
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int _ = 1;
    if (_output)
        cin >> _;
    while (_--)
        solve();
    return 0;
}

详细

Test #1:

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

input:

input

output:

24
$3 = $1 * 0.5
$2 = $1 * $1
$0 = $1 + $3
$3 = $2 * 0.1666666667
$2 = $1 * $2
$0 = $0 + $3
$3 = $2 * 0.0416666667
$2 = $1 * $2
$0 = $0 + $3
$3 = $2 * 0.0083333333
$2 = $1 * $2
$0 = $0 + $3
$3 = $2 * 0.0013888889
$2 = $1 * $2
$0 = $0 + $3
$3 = $2 * 0.0001984127
$2 = $1 * $2
$0 = $0 + $3
$3 = $2 * 0....

result:

wrong answer x=-20,jury=2.06115e-09,participant=612466,error=2.97147e+14