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 21, 2026 16:40Charles CabergsCharles CabergsScore: 4,299Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 21, 2026 16:404,295140,172,356122,555,0002,009,0002,514,944
2Apr 21, 2026 16:404,296141,587,979122,590,0002,009,0002,519,040
3Apr 21, 2026 16:404,296145,837,831122,595,0002,009,0002,514,944
4Apr 21, 2026 16:404,297141,307,540122,628,0002,010,0002,523,136
5Apr 21, 2026 16:404,299140,409,847122,682,0001,994,0002,519,040
6Apr 21, 2026 16:404,299144,966,957122,678,0002,011,0002,527,232
7Apr 21, 2026 16:404,301142,136,315120,758,0003,992,0002,318,336
8Apr 21, 2026 16:404,302148,604,729121,751,0003,018,0002,519,040
9Apr 21, 2026 16:404,303146,357,472121,797,0002,995,0002,330,624