Submission #28105

#TimeUsernameProblemLanguageResultExecution timeMemory
28105Shocking Hot (#71)The Ethereum and The Bitcoin (FXCUP2_ethereum)C++14
0 / 1
0 ms1120 KiB
#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 timeMemoryGrader output
Fetching results...