QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#495526#9136. Exponent Calculatorucup-team3586#AC ✓0ms3664kbC++23809b2024-07-27 21:28:322024-07-27 21:28:33

Judging History

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

  • [2024-07-27 21:28:33]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3664kb
  • [2024-07-27 21:28:32]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
int main()
{
	puts("25");
	puts("$1 = $1 + 20");
	puts("$1 = $1 * 0.0001220703125");
	puts("$15 = 1 + $1");
	puts("$2 = $1 * $1");
	puts("$5 = $2 * 0.5");
	puts("$6 = $1 * 0.166666666666667");
	puts("$7 = $2 * 0.041666666666667");
	puts("$8 = $6 + $7");
	puts("$8 = $8 * $2");
	puts("$15 = $15 + $5");
	puts("$15 = $15 + $8");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$15 = $15 * $15");
	puts("$0 = $15 * 0.00000000206115362243855782796594");
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3664kb

input:

input

output:

25
$1 = $1 + 20
$1 = $1 * 0.0001220703125
$15 = 1 + $1
$2 = $1 * $1
$5 = $2 * 0.5
$6 = $1 * 0.166666666666667
$7 = $2 * 0.041666666666667
$8 = $6 + $7
$8 = $8 * $2
$15 = $15 + $5
$15 = $15 + $8
$15 = $15 * $15
$15 = $15 * $15
$15 = $15 * $15
$15 = $15 * $15
$15 = $15 * $15
$15 = $15 * $15
$15 = $15 ...

result:

ok max relative diff is 1.91088e-10. Checker runtime is 198 ms

Extra Test:

score: 0
Extra Test Passed