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 21:18TudyMTudyMScore: 4,136Success
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 21:184,122136,844,874118,504,0001,048,0002,379,776
2May 3, 2026 21:184,122137,780,624118,500,0001,045,0002,359,296
3May 3, 2026 21:184,123135,228,704118,569,0001,011,0002,375,680
4May 3, 2026 21:184,132135,715,836119,846,00002,379,776
5May 3, 2026 21:184,136135,443,337118,933,0001,035,0002,379,776
6May 3, 2026 21:184,139134,340,691118,996,0001,056,0002,371,584
7May 3, 2026 21:184,140138,997,524118,971,0001,091,0002,359,296
8May 3, 2026 21:184,142141,227,552119,049,0001,080,0002,367,488
9May 3, 2026 21:184,144138,920,379119,147,0001,053,0002,363,392