QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#749025#9136. Exponent Calculatorucup-team134WA 1ms3944kbC++14746b2024-11-14 22:24:492024-11-14 22:24:50

Judging History

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

  • [2024-11-14 22:24:50]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3944kb
  • [2024-11-14 22:24:49]
  • 提交

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("$1 = $0 + 1\n");
	
	printf("$2 = $0 * $0\n");
	printf("$3 = $2 * 0.5\n");
	printf("$1 = $1 + $3\n");
	
	ld f=0.5;
	for(int k=3;k<=9;k++){
		f/=k;
		printf("$2 = $2 * $0\n");
		printf("$3 = $2 * %.20Lf\n",f);
		if(k==9){
			printf("$0 = $1 + $3\n");
		}
		else{
			printf("$1 = $1 + $3\n");
		}
	}
	return 0;
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3944kb

input:

input

output:

25
$1 = $0 + 1
$2 = $0 * $0
$3 = $2 * 0.5
$1 = $1 + $3
$2 = $2 * $0
$3 = $2 * 0.16666666666666666667
$1 = $1 + $3
$2 = $2 * $0
$3 = $2 * 0.04166666666666666667
$1 = $1 + $3
$2 = $2 * $0
$3 = $2 * 0.00833333333333333333
$1 = $1 + $3
$2 = $2 * $0
$3 = $2 * 0.00138888888888888889
$1 = $1 + $3
$2 = $2 *...

result:

wrong answer x=-20,jury=2.06115e-09,participant=1,error=4.85165e+08