Submission #28106

#TimeUsernameProblemLanguageResultExecution timeMemory
28106tlwpdus 팬클럽 회장 (#71)The Ethereum and The Bitcoin (FXCUP2_ethereum)C++14
0 / 1
0 ms1120 KiB
#include "ethereum.h"
#include <stdio.h>
typedef excinfo ex;
typedef long long ll;

ll p = 100000000, q = 99999999;
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...