QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#684826 | #9136. Exponent Calculator | icpc_zhzx034# | AC ✓ | 0ms | 3564kb | C++14 | 1.0kb | 2024-10-28 16:06:38 | 2024-10-28 16:06:38 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair <ll,ll> P;
#define _for(x,y,z) for (int x(y),_(z); x<=_; ++x)
#define _rep(x,y,z) for (int x(y),_(z); x>=_; --x)
inline ll read(){ ll x; cin>>x; return x; }
inline void _init(){
#ifdef LOCAL
assert(freopen("test.in", "r", stdin));
assert(freopen("test.out", "w", stdout));
#endif
ios::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
}
void init() {}
void procedure() {
cout << "25\n$1 = $1 * 0.00390625\n$0 = 1.0 + $1\n$2 = $1 * $1\n$3 = $2 * 0.5\n$0 = $0 + $3\n$2 = $2 * $1\n$3 = $2 * 0.16666666666666666\n$0 = $0 + $3\n$2 = $2 * $1\n$3 = $2 * 0.041666666666666664\n$0 = $0 + $3\n$2 = $2 * $1\n$3 = $2 * 0.008333333333333333\n$0 = $0 + $3\n$2 = $2 * $1\n$3 = $2 * 0.001388888888888889\n$0 = $0 + $3\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";
}
int main() {
_init(), init();
int T=1;
while(T--) procedure();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3564kb
input:
input
output:
25 $1 = $1 * 0.00390625 $0 = 1.0 + $1 $2 = $1 * $1 $3 = $2 * 0.5 $0 = $0 + $3 $2 = $2 * $1 $3 = $2 * 0.16666666666666666 $0 = $0 + $3 $2 = $2 * $1 $3 = $2 * 0.041666666666666664 $0 = $0 + $3 $2 = $2 * $1 $3 = $2 * 0.008333333333333333 $0 = $0 + $3 $2 = $2 * $1 $3 = $2 * 0.001388888888888889 $0 = $0 ...
result:
ok max relative diff is 9.66162e-10. Checker runtime is 161 ms
Extra Test:
score: 0
Extra Test Passed