QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#494918#9136. Exponent Calculatorucup-team1004#AC ✓0ms3604kbC++14908b2024-07-27 17:38:132024-07-27 17:38:14

Judging History

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

  • [2024-07-27 17:38:14]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3604kb
  • [2024-07-27 17:38:13]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#ifdef DEBUG
#include"debug.h"
#else
#define debug(...) void()
#endif
#define all(x) (x).begin(),(x).end()
template<class T>
auto ary(T *a,int l,int r){
	return vector<T>{a+l,a+1+r};
}
using ll=long long;
using ull=unsigned long long;
using ld=long double;
int main(){
	cout<<"24\n\
$1 = $1 * 0.00390625\n\
$0 = 0.0001984126984126984\n\
$0 = $1 * $0\n\
$0 = $0 + 0.001388888888888889\n\
$0 = $1 * $0\n\
$0 = $0 + 0.008333333333333333\n\
$0 = $1 * $0\n\
$0 = $0 + 0.04166666666666666\n\
$0 = $1 * $0\n\
$0 = $0 + 0.1666666666666667\n\
$0 = $1 * $0\n\
$0 = $0 + 0.5\n\
$0 = $1 * $0\n\
$0 = $0 + 1\n\
$0 = $1 * $0\n\
$0 = $0 + 1\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n\
$0 = $0 * $0\n"<<endl;
	return 0;
}
#ifdef DEBUG
#include"debug.hpp"
#endif

详细

Test #1:

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

input:

input

output:

24
$1 = $1 * 0.00390625
$0 = 0.0001984126984126984
$0 = $1 * $0
$0 = $0 + 0.001388888888888889
$0 = $1 * $0
$0 = $0 + 0.008333333333333333
$0 = $1 * $0
$0 = $0 + 0.04166666666666666
$0 = $1 * $0
$0 = $0 + 0.1666666666666667
$0 = $1 * $0
$0 = $0 + 0.5
$0 = $1 * $0
$0 = $0 + 1
$0 = $1 * $0
$0 = $0 + 1...

result:

ok max relative diff is 9.46398e-12. Checker runtime is 193 ms

Extra Test:

score: 0
Extra Test Passed