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 19:12TudyMTudyMScore: 5,351Success
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 19:165,346171,309,247154,034,0001,025,0002,363,392
2May 3, 2026 19:165,349172,426,543154,115,0001,007,0002,371,584
3May 3, 2026 19:165,349172,163,304154,094,0001,034,0002,363,392
4May 3, 2026 19:165,350175,441,821154,111,0001,065,0002,371,584
5May 3, 2026 19:165,351172,478,433154,131,0001,048,0002,363,392
6May 3, 2026 19:165,351172,285,372154,140,0001,060,0002,379,776
7May 3, 2026 19:165,352172,059,970154,170,0001,047,0002,367,488
8May 3, 2026 19:165,356171,800,869154,206,0001,135,0002,371,584
9May 3, 2026 19:165,357173,777,353154,270,0001,099,0002,371,584