# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28105 | Shocking Hot (#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 long long ll;
const ll V1 = 100000000, V2 = 99999999;
excinfo GetExchangePrice() {
excinfo A = Exchange(V1);
excinfo B = Exchange(V2);
ll r2 = (B.BTC*V1 - A.BTC*V2)/(B.BTC*A.ETH - A.BTC*B.ETH);
ll r1 = (V1 - A.ETH*r2)/A.BTC;
return {r1, r2};
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |