QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#497273#9136. Exponent Calculatorucup-team1134WA 0ms3788kbC++231.4kb2024-07-28 21:56:222024-07-28 21:56:22

Judging History

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

  • [2024-07-28 21:56:22]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3788kb
  • [2024-07-28 21:56:22]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return true; } return false; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return true; } return false; }
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define mp make_pair
#define si(x) int(x.size())
const int mod=998244353,MAX=300005,INF=15<<26;

int main(){
    
    std::ifstream in("text.txt");
    std::cin.rdbuf(in.rdbuf());
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    vector<string> ans;
    ans.push_back("$0 = 1");
    ans.push_back("$2 = 0.015625");
    ans.push_back("$3 = 0.5");
    ans.push_back("$4 = 0.1666666666666666");
    
    ans.push_back("$1 = $1 * $2");
    
    ans.push_back("$0 = $0 + $1");
    
    ans.push_back("$3 = $3 * $1");
    ans.push_back("$3 = $3 * $1");
    ans.push_back("$0 = $0 + $3");
    
    ans.push_back("$4 = $4 * $1");
    ans.push_back("$4 = $4 * $1");
    ans.push_back("$4 = $4 * $1");
    ans.push_back("$0 = $0 + $4");
    
    ans.push_back("$0 = $0 * $0");
    ans.push_back("$0 = $0 * $0");
    ans.push_back("$0 = $0 * $0");
    ans.push_back("$0 = $0 * $0");
    ans.push_back("$0 = $0 * $0");
    ans.push_back("$0 = $0 * $0");
    
    cout<<si(ans)<<"\n";
    for(string S:ans) cout<<S<<"\n";
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

input

output:

19
$0 = 1
$2 = 0.015625
$3 = 0.5
$4 = 0.1666666666666666
$1 = $1 * $2
$0 = $0 + $1
$3 = $3 * $1
$3 = $3 * $1
$0 = $0 + $3
$4 = $4 * $1
$4 = $4 * $1
$4 = $4 * $1
$0 = $0 + $4
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0
$0 = $0 * $0

result:

wrong answer x=-20,jury=2.06115e-09,participant=1.99483e-09,error=0.0321756