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 22, 2026 00:00olliecrowolliecrowScore: 5,245Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 22, 2026 00:015,240166,057,843149,974,0001,999,0002,453,504
2Apr 22, 2026 00:015,240170,465,588149,982,0001,999,0002,461,696
3Apr 22, 2026 00:015,242174,855,334150,043,0002,000,0002,461,696
4Apr 22, 2026 00:015,243170,065,110150,052,0002,000,0002,457,600
5Apr 22, 2026 00:015,245171,872,036150,118,0002,001,0002,457,600
6Apr 22, 2026 00:015,245166,542,963150,128,0002,001,0002,465,792
7Apr 22, 2026 00:015,246167,553,071150,158,0001,988,0002,322,432
8Apr 22, 2026 00:015,246169,660,615150,144,0002,001,0002,469,888
9Apr 22, 2026 00:015,248166,514,704150,190,0002,002,0002,461,696