QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#497277 | #9136. Exponent Calculator | ucup-team1134 | WA | 0ms | 3612kb | C++23 | 1.6kb | 2024-07-28 22:00:21 | 2024-07-28 22:00:22 |
Judging History
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("$5 = 0.0.041666666666666664");
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("$5 = $5 * $1");
ans.push_back("$5 = $5 * $1");
ans.push_back("$5 = $5 * $1");
ans.push_back("$5 = $5 * $1");
ans.push_back("$0 = $0 + $5");
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: 3612kb
input:
input
output:
25 $0 = 1 $2 = 0.015625 $3 = 0.5 $4 = 0.1666666666666666 $5 = 0.0.041666666666666664 $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 $5 = $5 * $1 $5 = $5 * $1 $5 = $5 * $1 $5 = $5 * $1 $0 = $0 + $5 $0 = $0 * $0 $0 = $0 * $0 $0 = $0...
result:
wrong answer x=-20,jury=2.06115e-09,participant=1.99483e-09,error=0.0321756