QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518924#9136. Exponent CalculatorYMH_fourteenAC ✓0ms3676kbC++14971b2024-08-14 14:16:442024-08-14 14:16:46

Judging History

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

  • [2024-08-14 14:16:46]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3676kb
  • [2024-08-14 14:16:44]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#ifdef DEBUG
#include "E:/OI/normal/templates/debug.h"
#else
#define dbg(...) (void)0
#define msg(...) (void)0
#endif
#define ll long long
#define endl '\n'
#define PB emplace_back
#define PPB pop_back
#define MP make_pair
#define ALL(Name) Name.begin(),Name.end()
#define PII pair<int,int>
#define VI vector<int>
#define GI greater<int>
#define fi first
#define se second



int main()
{
	ios::sync_with_stdio(false),cin.tie(nullptr);
//	int _;cin>>_;while(_--)

	cout<<R"(25
$1 = $1 * 0.00390625
$0 = $1 + 1
$2 = $1 * $1
$2 = $2 * 0.5
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.33333333333333333333
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.25
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.2
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.16666666666666666667
$0 = $0 + $2
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0)";

	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

input

output:

25
$1 = $1 * 0.00390625
$0 = $1 + 1
$2 = $1 * $1
$2 = $2 * 0.5
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.33333333333333333333
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.25
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.2
$0 = $0 + $2
$2 = $2 * $1
$2 = $2 * 0.16666666666666666667
$0 = $0 + $2
$0 = $0 * $0
$0 = $0 * $0...

result:

ok max relative diff is 9.66162e-10. Checker runtime is 209 ms

Extra Test:

score: 0
Extra Test Passed