# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28111 | tlwpdus 팬클럽 회장 (#71) | The Ethereum and The Bitcoin (FXCUP2_ethereum) | C++14 | 0 ms | 1120 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "ethereum.h"
#include <stdio.h>
typedef excinfo ex;
typedef long long ll;
ll p = 99999989, q = 99999971;
ll B, E;
ex GetExchangePrice() {
ex P = Exchange(p);
ex Q = Exchange(q);
ll a = P.BTC, b = P.ETH, c = Q.BTC, d = Q.ETH;
E = (c * p - a * q) / (b * c - a * d);
B = (p - b * E) / a;
return {B, E};
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |