Crypto Trading
CodeChefOpen on judge ↗
AMRExchange is the latest cryptocurrency exchange that has become very popular among cryptocurrency traders. On AMRExchange, there are **N** cryptocurrencies - let us denote the ith currency by **Ci**. **M** pairs of these cryptocurrencies are tradable - one unit of currency **Cx** can be converted to one unit of currency **Cy** with risk **Cxy**. Mr. X, an avid cryptocurrency collector, wants t
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start