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:02TudyMTudyMScore: 4,709Success
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:074,704157,336,104136,435,00002,355,200
2May 3, 2026 20:074,705153,225,211136,462,00002,371,584
3May 3, 2026 20:074,708152,742,554135,476,0001,065,0002,363,392
4May 3, 2026 20:074,708153,455,911136,548,00002,355,200
5May 3, 2026 20:074,709152,152,880136,580,00002,363,392
6May 3, 2026 20:074,711152,945,909135,592,0001,050,0002,367,488
7May 3, 2026 20:074,711152,766,603135,595,0001,046,0002,363,392
8May 3, 2026 20:074,711152,942,903135,592,0001,033,0002,371,584
9May 3, 2026 20:074,714151,933,256135,674,0001,060,0002,351,104