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 25, 2026 01:09Charles CabergsCharles CabergsScore: 3,800Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 01:093,793125,192,076108,005,0002,000,0002,514,944
2Apr 25, 2026 01:093,793129,003,688106,998,0002,999,0002,318,336
3Apr 25, 2026 01:093,796125,715,412108,086,0002,001,0002,510,848
4Apr 25, 2026 01:093,798129,370,543109,145,0001,001,0002,527,232
5Apr 25, 2026 01:093,800127,867,390107,195,0003,005,0002,510,848
6Apr 25, 2026 01:093,800130,724,090108,198,0002,003,0002,502,656
7Apr 25, 2026 01:093,801128,290,225107,226,0003,006,0002,523,136
8Apr 25, 2026 01:093,801126,896,921107,248,0003,006,0002,519,040
9Apr 25, 2026 01:093,805129,746,698109,365,0001,003,0002,338,816