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 11, 2026 23:49Yuriy LyfenkoYuriy LyfenkoScore: 3,722Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 11, 2026 23:493,720130,901,617105,893,0001,997,0002,400,256
2Apr 11, 2026 23:493,720130,077,266106,893,000999,0002,379,776
3Apr 11, 2026 23:493,721135,643,471106,914,000999,0002,523,136
4Apr 11, 2026 23:493,721131,248,749105,916,0001,998,0002,387,968
5Apr 11, 2026 23:493,722131,840,462105,953,0001,999,0002,281,472
6Apr 11, 2026 23:493,723132,104,923105,965,0001,999,0002,396,160
7Apr 11, 2026 23:493,723133,752,795106,981,000999,0002,392,064
8Apr 11, 2026 23:493,724130,556,042105,993,0001,999,0002,387,968
9Apr 11, 2026 23:493,734131,146,261108,280,00002,392,064