Draft saved on this device
▤ Description
HFT SystemsEasy
Find The Largest Single Trade
A trade has integer quantity and price.
A trade has integer quantity and price. Its notional is quantity multiplied by price. Find the maximum notional among N trades; use 64-bit arithmetic.
Input format
First line N; next N lines quantity price.
Output format
Print the maximum trade notional.
Examples
Example 1
Input
3 2 100 3 90 1 500
Expected output
500
Constraints
- 1 ≤ N ≤ 100000
- 0 ≤ quantity, price ≤ 10^9
- Products fit in signed 64-bit.
Related concepts
This early-access exercise uses standard input/output. More advanced concurrency challenges will use specialized class interfaces, instrumentation, and stress tests once the judging infrastructure is ready.
⌘ Code
Loading Monaco C++ editor…
Checking judge...
Checking whether the external C++ judge is available.
⌁ Test cases & resultsPublic samples: 1
Input
3 2 100 3 90 1 500
Expected output
500