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:22TudyMTudyMScore: 4,188Success
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:244,180135,019,347120,206,0001,029,0002,367,488
2May 3, 2026 21:244,181138,568,127120,233,0001,040,0002,375,680
3May 3, 2026 21:244,185139,217,313120,340,0001,034,0002,371,584
4May 3, 2026 21:244,188138,614,126120,446,0001,019,0002,371,584
5May 3, 2026 21:244,188140,137,848120,420,0001,053,0002,371,584
6May 3, 2026 21:244,189140,249,209120,446,0001,037,0002,367,488
7May 3, 2026 21:244,191140,691,465120,498,0001,057,0002,367,488
8May 3, 2026 21:244,191141,599,716120,533,0001,034,0002,383,872
9May 3, 2026 21:244,220138,985,823121,359,0001,040,0002,371,584