QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#624937#9136. Exponent Calculatorticking_away#WA 0ms3584kbC++201.8kb2024-10-09 16:57:242024-10-09 16:57:24

Judging History

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

  • [2024-10-09 16:57:24]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3584kb
  • [2024-10-09 16:57:24]
  • 提交

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 << "25\n";
    cout << "$3 = $1 * 0.5\n$2 = $1 * $1\n$0 = $1 + $3\n$0 = $0 + 1\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;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

input

output:

25
$3 = $1 * 0.5
$2 = $1 * $1
$0 = $1 + $3
$0 = $0 + 1
$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
...

result:

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