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 29, 2026 22:02Victor MerckléVictor MerckléScore: 3,489Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 22:023,482120,010,00698,989,0001,999,0002,527,232
2Apr 29, 2026 22:023,483115,219,47199,013,0002,000,0002,523,136
3Apr 29, 2026 22:023,488124,229,50899,162,0002,003,0002,531,328
4Apr 29, 2026 22:023,488123,268,980100,174,0001,001,0002,510,848
5Apr 29, 2026 22:023,489121,410,39899,182,0002,003,0002,514,944
6Apr 29, 2026 22:023,490121,007,82299,226,0002,004,0002,523,136
7Apr 29, 2026 22:023,490119,611,42099,211,0002,004,0002,531,328
8Apr 29, 2026 22:023,491119,163,282100,255,0001,002,0002,523,136
9Apr 29, 2026 22:023,492119,657,398100,285,0001,002,0002,338,816