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 listJan 21, 2025 07:41NoSIMD_C#NoSIMD_C#Score: 19,285Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 21, 2025 07:4119,063582,439,710521,940,00030,878,0002,347,008
2Jan 21, 2025 07:4119,165583,051,867520,853,00034,923,0002,314,240
3Jan 21, 2025 07:4119,206586,750,891517,116,00039,854,0002,334,720
4Jan 21, 2025 07:4119,277585,950,833521,034,00038,002,0002,510,848
5Jan 21, 2025 07:4119,285584,236,053526,250,00033,015,0002,514,944
6Jan 21, 2025 07:4119,293587,719,061520,474,00039,035,0002,555,904
7Jan 21, 2025 07:4119,382596,444,859520,220,00041,856,0002,428,928
8Jan 21, 2025 07:4119,395588,643,087527,558,00034,904,0002,416,640
9Jan 21, 2025 07:4119,680600,780,991539,838,00030,876,0002,322,432