# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
28189 | IE (#71) | The Ethereum and The Bitcoin (FXCUP2_ethereum) | C++98 | 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 <algorithm>
using namespace std;
long long det(long long p, long long q, long long r, long long s)
{
return p * s - q * r;
}
excinfo GetExchangePrice() {
excinfo A = Exchange(100000000);
excinfo B = Exchange(99999999);
long long p = det(100000000,A.ETH,99999999,B.ETH);
long long q = det(A.BTC,100000000,B.BTC,99999999);
long long r = det(A.BTC,A.ETH,B.BTC,B.ETH);
return {p/r,q/r};
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |