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 30, 2026 21:24Charles CabergsCharles CabergsScore: 3,633Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 30, 2026 21:243,629121,040,298102,250,0003,007,0002,502,656
2Apr 30, 2026 21:243,629120,444,595103,257,0002,004,0002,523,136
3Apr 30, 2026 21:243,629122,491,979102,242,0003,007,0002,514,944
4Apr 30, 2026 21:243,633120,645,317103,358,0002,006,0002,342,912
5Apr 30, 2026 21:243,633119,040,727104,357,0001,003,0002,514,944
6Apr 30, 2026 21:243,634124,798,784104,399,0001,003,0002,514,944
7Apr 30, 2026 21:243,638124,079,794104,520,000995,0002,519,040
8Apr 30, 2026 21:243,638123,239,299103,515,0002,010,0002,519,040
9Apr 30, 2026 21:243,647124,925,881102,785,0002,993,0002,322,432