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 05:48Victor MerckléVictor MerckléScore: 3,575Success
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 05:493,571116,408,316102,577,0001,005,0002,342,912
2Apr 30, 2026 05:493,572127,460,567102,599,0001,005,0002,519,040
3Apr 30, 2026 05:493,572121,038,217103,609,00002,531,328
4Apr 30, 2026 05:493,573126,640,033102,620,0001,006,0002,527,232
5Apr 30, 2026 05:493,575120,866,221102,669,0001,006,0002,531,328
6Apr 30, 2026 05:493,575125,481,499102,681,0001,006,0002,523,136
7Apr 30, 2026 05:493,576119,309,530102,713,0001,006,0002,338,816
8Apr 30, 2026 05:493,578123,685,037101,782,0001,995,0002,514,944
9Apr 30, 2026 05:493,579120,333,153101,800,0001,996,0002,535,424