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 27, 2026 07:50Charles CabergsCharles CabergsScore: 4,413Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 27, 2026 07:504,410150,596,546124,917,0002,998,0002,506,752stderr
2Apr 27, 2026 07:504,411143,985,742124,927,0002,998,0002,514,944stderr
3Apr 27, 2026 07:504,411151,391,249124,931,0002,998,0002,523,136stderr
4Apr 27, 2026 07:504,411143,113,346124,927,0002,998,0002,514,944stderr
5Apr 27, 2026 07:504,413146,209,006124,982,0002,999,0002,523,136stderr
6Apr 27, 2026 07:504,415146,124,720125,055,0003,001,0002,519,040stderr
7Apr 27, 2026 07:504,415145,328,394125,047,0003,001,0002,519,040stderr
8Apr 27, 2026 07:504,416147,782,574125,073,0003,001,0002,338,816stderr
9Apr 27, 2026 07:504,422149,662,874126,261,0002,004,0002,338,816stderr