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:38TudyMTudyMScore: 4,424Success
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:414,419145,019,957128,168,00002,367,488
2May 3, 2026 20:414,420146,715,854128,199,00002,371,584
3May 3, 2026 20:414,423147,275,143127,243,0001,033,0002,371,584
4May 3, 2026 20:414,423143,269,400127,247,0001,025,0002,359,296
5May 3, 2026 20:414,424147,309,893127,237,0001,059,0002,371,584
6May 3, 2026 20:414,424145,158,938127,262,0001,049,0002,371,584
7May 3, 2026 20:414,427146,134,581127,364,0001,040,0002,379,776
8May 3, 2026 20:414,430147,393,852127,422,0001,055,0002,351,104
9May 3, 2026 20:414,437144,641,569127,544,0001,130,0002,363,392