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 listApr 28, 2026 19:43Charles CabergsCharles CabergsScore: 3,676Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 19:433,673126,085,665104,535,0002,010,0002,514,944
2Apr 28, 2026 19:433,673126,533,258104,528,0002,010,0002,519,040
3Apr 28, 2026 19:433,674127,180,054104,542,0002,010,0002,523,136
4Apr 28, 2026 19:433,675123,833,366105,571,0001,005,0002,338,816
5Apr 28, 2026 19:433,676124,983,827104,593,0002,011,0002,514,944
6Apr 28, 2026 19:433,679126,778,093104,680,0002,013,0002,338,816
7Apr 28, 2026 19:433,679127,458,843104,683,0002,013,0002,510,848
8Apr 28, 2026 19:433,679124,394,654105,691,0001,006,0002,523,136
9Apr 28, 2026 19:433,680121,640,943104,736,0001,994,0002,514,944