QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#496770#9136. Exponent Calculatorucup-team4361#WA 0ms3856kbC++141.4kb2024-07-28 15:49:482024-07-28 15:49:48

Judging History

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

  • [2024-07-28 15:49:48]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3856kb
  • [2024-07-28 15:49:48]
  • 提交

answer

#include <bits/stdc++.h>

#define LL long long
#define ull unsigned long long
#define F(i, j, k) for (int i = j; i <= k; ++i)
#define DF(i, j, k) for (int i = j; i >= k; --i)

using namespace std;

template <typename T> inline void read(T &n) {
    T w = 1;
    n = 0;
    char ch = getchar();
    while (!isdigit(ch) && ch != EOF) {
        if (ch == '-') w = -1;
        ch = getchar();
    }
    while (isdigit(ch) && ch != EOF) {
        n = (n << 3) + (n << 1) + (ch & 15);
        ch = getchar();
    }
    n *= w;
}

template <typename T> inline void write(T x) {
    T l = 0;
    ull y = 0;
    if (!x) { putchar(48); return; }
    if (x < 0) { x = -x; putchar('-'); }
    while (x) { y = y * 10 + x % 10; x /= 10; ++l; }
    while (l) { putchar(y % 10 + 48); y /= 10; --l; }
}

template <typename T> inline void writes(T x) {
    write(x);
    putchar(' ');
}

template <typename T> inline void writeln(T x) {
    write(x);
    puts("");
}

template <typename T> inline void checkmax(T &a, T b) { a = a > b ? a : b; }

template <typename T> inline void checkmin(T &a, T b) { a = a < b ? a : b; }

int main() {
    //freopen(".in", "r", stdin);
    //freopen(".out", "w", stdout);
    long double x = 1;
    F(i, 1, 23) x = x * 0.5;
    cout << fixed << setprecision(23) << "$1 = $1 * " << x << '\n';
    cout << "$0 = $1 + 1\n";
    F(i, 1, 23) cout << "$0 = $0 * $0\n";
    return 0;
}

詳細信息

Test #1:

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

input:

input

output:

$1 = $1 * 0.00000011920928955078125
$0 = $1 + 1
$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
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = ...

result:

wrong output format Expected integer, but "$1" found