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 22, 2026 19:17Charles CabergsCharles CabergsScore: 3,680Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 19:173,676128,566,475104,601,0002,011,0002,334,720
2Apr 22, 2026 19:173,677130,084,820104,644,0002,012,0002,514,944
3Apr 22, 2026 19:173,678124,703,315105,658,0001,006,0002,519,040
4Apr 22, 2026 19:173,679124,126,335104,706,0002,013,0002,338,816
5Apr 22, 2026 19:173,680121,947,892103,746,0002,992,0002,326,528
6Apr 22, 2026 19:173,680126,395,272103,746,0002,992,0002,334,720
7Apr 22, 2026 19:173,681125,673,634104,772,0001,995,0002,527,232
8Apr 22, 2026 19:173,683126,291,451103,821,0002,994,0002,519,040
9Apr 22, 2026 19:173,685125,927,118103,883,0002,996,0002,519,040