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:47TudyMTudyMScore: 4,465Success
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:514,462148,877,660128,347,0001,063,0002,367,488
2May 3, 2026 20:514,463148,540,366128,387,0001,058,0002,371,584
3May 3, 2026 20:514,463146,275,386128,393,0001,038,0002,371,584
4May 3, 2026 20:514,465147,706,288128,461,0001,051,0002,363,392
5May 3, 2026 20:514,465148,443,321128,458,0001,044,0002,371,584
6May 3, 2026 20:514,466143,110,020128,466,0001,060,0002,371,584
7May 3, 2026 20:514,469148,005,693128,545,0001,060,0002,367,488
8May 3, 2026 20:514,470146,384,064128,575,0001,066,0002,367,488
9May 3, 2026 20:514,478149,824,059128,842,0001,047,0002,367,488