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 listJun 20, 2026 10:22A_ShamanA_ShamanScore: 5,979Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jun 20, 2026 10:235,956181,741,101149,644,00023,095,0002,113,536
2Jun 20, 2026 10:235,957181,750,488149,790,00022,979,0002,113,536
3Jun 20, 2026 10:235,958181,798,277149,684,00023,107,0002,113,536
4Jun 20, 2026 10:235,970182,199,679149,662,00023,477,0002,113,536
5Jun 20, 2026 10:235,979182,568,635149,831,00023,579,0002,113,536
6Jun 20, 2026 10:235,980182,400,137149,859,00023,566,0002,113,536
7Jun 20, 2026 10:235,983182,647,297149,663,00023,850,0002,113,536
8Jun 20, 2026 10:235,986182,602,208149,737,00023,861,0002,113,536
9Jun 20, 2026 10:236,000183,033,563149,949,00024,072,0002,113,536