QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#499660#9136. Exponent Calculatorucup-team3555WA 0ms3808kbC++20439b2024-07-31 16:41:372024-07-31 16:41:37

Judging History

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

  • [2024-07-31 16:41:37]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3808kb
  • [2024-07-31 16:41:37]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

const int N=10;
int fac[N],B=10;

int main(){
  cout<<"25\n$1 = $1 * "<<1.0/(1<<B)<<'\n';
  
  fac[0]=1;
  for(int i=1;i<=7;i++) fac[i]=fac[i-1]*i;

  cout<<"$0 = $1 * "<<1.0/fac[7]<<'\n';
  for(int i=6;i>=1;i--){
	cout<<"$0 = $0 + "<<1.0/fac[i]<<'\n';
	cout<<"$0 = $0 * $1\n";
  }
  cout<<"$0 = $0 + 1\n";
  
  for(int i=1;i<=B;i++) cout<<"$0 = $0 * $0\n";
  return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3808kb

input:

input

output:

25
$1 = $1 * 0.000976562
$0 = $1 * 0.000198413
$0 = $0 + 0.00138889
$0 = $0 * $1
$0 = $0 + 0.00833333
$0 = $0 * $1
$0 = $0 + 0.0416667
$0 = $0 * $1
$0 = $0 + 0.166667
$0 = $0 * $1
$0 = $0 + 0.5
$0 = $0 * $1
$0 = $0 + 1
$0 = $0 * $1
$0 = $0 + 1
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 =...

result:

wrong answer x=-20,jury=2.06115e-09,participant=2.06117e-09,error=1.02375e-05