QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#496389 | #9136. Exponent Calculator | ucup-team1231# | WA | 0ms | 3804kb | C++14 | 577b | 2024-07-28 07:56:21 | 2024-07-28 07:56:22 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
double ifac(int x) {
double ret = 1;
for(int i = 1; i <= x; i++) ret *= i;
return 1.0 / ret;
}
int main() {
const int T = 7, M = 10;
printf("$1 = $1 * %.14lf\n", 1.0 / 1024.0);
printf("$2 = $1 * %.14lf\n", ifac(T));
for(int i = T - 1; i >= 1; i--) {
printf("$2 = $2 + %.14lf\n", ifac(i));
printf("$2 = $1 * $2\n");
}
printf("$2 = $2 + %.14lf\n", 1.0);
printf("$0 = $2 * $2\n");
for(int i = 1; i < M; i++) printf("$0 = $0 * $0\n");
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3804kb
input:
input
output:
$1 = $1 * 0.00097656250000 $2 = $1 * 0.00019841269841 $2 = $2 + 0.00138888888889 $2 = $1 * $2 $2 = $2 + 0.00833333333333 $2 = $1 * $2 $2 = $2 + 0.04166666666667 $2 = $1 * $2 $2 = $2 + 0.16666666666667 $2 = $1 * $2 $2 = $2 + 0.50000000000000 $2 = $1 * $2 $2 = $2 + 1.00000000000000 $2 = $1 * $2 $2 = $...
result:
wrong output format Expected integer, but "$1" found