Arithmetic expressions Sergey Svistunov

Evaluate 100 arithmetic expressions as fast as possible.

Input

One expression per line on STDIN. Each expression contains 50,000 int16 numbers with operators +, -, *, / (integer division) and parentheses (, ).

-19550 - ((-14208 / (13583 + -19215)) + (-16832 / 797 + (9060 / -23627)) + ((-6060) + 24953))
30835 - 3703 - (-20089 * -6261 + ((-28985 - 29627) + (-17828 - (22773 / -4014) * 1630)))

Output

Print the int64 result of each expression, one per line, to STDOUT.

Back to listApr 28, 2024 21:51Joad NacerJoad NacerScore: 8,292Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2024 21:518,267457,317,401239,755,454027,451,392
2Apr 28, 2024 21:508,282451,065,447240,179,872027,459,584
3Apr 28, 2024 21:508,286448,042,580240,294,753027,455,488
4Apr 28, 2024 21:518,288448,293,987240,359,252027,455,488
5Apr 28, 2024 21:518,292456,385,056240,459,265027,447,296
6Apr 28, 2024 21:518,294460,679,644240,511,822027,373,568
7Apr 28, 2024 21:518,298464,726,793240,650,221027,447,296
8Apr 28, 2024 21:508,300444,952,364240,688,077027,471,872
9Apr 28, 2024 21:518,317453,484,791241,188,731027,443,200