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 listMay 3, 2026 20:52TudyMTudyMScore: 4,389Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 20:574,384145,832,300127,163,00002,367,488
2May 3, 2026 20:574,387145,808,537126,203,0001,046,0002,363,392
3May 3, 2026 20:574,388143,042,857126,261,0001,009,0002,375,680
4May 3, 2026 20:574,389144,139,455126,235,0001,048,0002,367,488
5May 3, 2026 20:574,389145,106,612126,234,0001,050,0002,379,776
6May 3, 2026 20:574,390146,106,860126,246,0001,071,0002,367,488
7May 3, 2026 20:574,390142,660,606126,285,0001,036,0002,375,680
8May 3, 2026 20:574,391146,947,583126,306,0001,050,0002,379,776
9May 3, 2026 20:574,391145,887,498126,300,0001,056,0002,375,680