QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#558748 | #9136. Exponent Calculator | ucup-team3691# | WA | 0ms | 3824kb | C++23 | 949b | 2024-09-11 18:17:23 | 2024-09-11 18:17:23 |
Judging History
answer
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <algorithm>
#include <queue>
#include <iomanip>
using namespace std;
using ll = long long;
void solve() {
cout << "25\n";
cout << fixed << setprecision(20);
for (int i = 2; i <= 9; i++) {
cout << "$" << i << " = $" << i - 1 << " * $1\n";
}
cout << "$0 = $9 * " << (long double) 1/9 << '\n';
for (int i = 8; i >= 2; i--) {
cout << "$0 = $0 + $" << i << '\n';
cout << "$0 = $0 * " << (long double) 1/i << '\n';
}
cout << "$0 = $0 + $1\n";
cout << "$0 = $0 + 1\n";
}
int main() {
#ifdef LOCAL
freopen("test.in", "r", stdin);
freopen("test.out", "w", stdout);
#endif // LOCAL
ios_base::sync_with_stdio(false);
cin.tie(0);
int nrt = 1;
//cin >> nrt;
while (nrt--) {
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 3824kb
input:
input
output:
25 $2 = $1 * $1 $3 = $2 * $1 $4 = $3 * $1 $5 = $4 * $1 $6 = $5 * $1 $7 = $6 * $1 $8 = $7 * $1 $9 = $8 * $1 $0 = $9 * 0.11111111111111111111 $0 = $0 + $8 $0 = $0 * 0.12500000000000000000 $0 = $0 + $7 $0 = $0 * 0.14285714285714285714 $0 = $0 + $6 $0 = $0 * 0.16666666666666666667 $0 = $0 + $5 $0 = $0 *...
result:
wrong answer x=-20,jury=2.06115e-09,participant=-962246,error=4.66848e+14