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 listSep 13, 2026 16:57Andrew EpsteinAndrew EpsteinScore: 3,115Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 13, 2026 16:573,108100,503,52989,064,0001,093,0002,113,536
2Sep 13, 2026 16:573,111100,620,55589,139,0001,098,0002,113,536
3Sep 13, 2026 16:573,113100,669,40689,154,0001,150,0002,113,536
4Sep 13, 2026 16:573,114101,379,07689,315,0001,012,0002,113,536
5Sep 13, 2026 16:573,115101,435,13589,339,0001,011,0002,113,536
6Sep 13, 2026 16:573,115100,697,05689,317,0001,021,0002,113,536
7Sep 13, 2026 16:573,116101,521,52389,362,0001,025,0002,113,536
8Sep 13, 2026 16:573,116101,502,63389,338,0001,029,0002,113,536
9Sep 13, 2026 16:573,116100,850,44989,360,0001,008,0002,113,536