Submission #28111

#TimeUsernameProblemLanguageResultExecution timeMemory
28111tlwpdus 팬클럽 회장 (#71)The Ethereum and The Bitcoin (FXCUP2_ethereum)C++14
1 / 1
0 ms1120 KiB
#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 timeMemoryGrader output
Fetching results...