QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#749079 | #9136. Exponent Calculator | ucup-team134 | WA | 0ms | 3956kb | C++14 | 746b | 2024-11-14 22:34:20 | 2024-11-14 22:34:21 |
Judging History
answer
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define f first
#define s second
#define sz(x) (int)(x).size()
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define ios ios_base::sync_with_stdio(false);cin.tie(NULL)
#define ld long double
#define li __int128
using namespace std;
mt19937 rng(time(NULL));
int main()
{
cout << 25 << endl;
printf("$2 = $1 + 1\n");
printf("$3 = $1 * $1\n");
printf("$4 = $3 * 0.5\n");
printf("$2 = $2 + $4\n");
ld f=0.5;
for(int k=3;k<=9;k++){
f/=k;
printf("$3 = $3 * $1\n");
printf("$4 = $3 * %.20Lf\n",f);
if(k==9){
printf("$0 = $2 + $4\n");
}
else{
printf("$2 = $2 + $4\n");
}
}
return 0;
}
詳細信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3956kb
input:
input
output:
25 $2 = $1 + 1 $3 = $1 * $1 $4 = $3 * 0.5 $2 = $2 + $4 $3 = $3 * $1 $4 = $3 * 0.16666666666666666667 $2 = $2 + $4 $3 = $3 * $1 $4 = $3 * 0.04166666666666666667 $2 = $2 + $4 $3 = $3 * $1 $4 = $3 * 0.00833333333333333333 $2 = $2 + $4 $3 = $3 * $1 $4 = $3 * 0.00138888888888888889 $2 = $2 + $4 $3 = $3 *...
result:
wrong answer x=-20,jury=2.06115e-09,participant=-962246,error=4.66848e+14