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 07:56Charles CabergsCharles CabergsScore: 4,478Success
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 07:584,471146,454,350127,664,0002,010,0002,519,040stderr
2Apr 28, 2026 07:584,475148,353,802127,807,0001,996,0002,519,040stderr
3Apr 28, 2026 07:584,476151,907,152126,815,0002,995,0002,510,848stderr
4Apr 28, 2026 07:584,477147,954,590126,845,0002,996,0002,510,848stderr
5Apr 28, 2026 07:584,478150,123,777126,874,0002,997,0002,523,136stderr
6Apr 28, 2026 07:584,479145,759,810127,916,0001,998,0002,338,816stderr
7Apr 28, 2026 07:584,480150,188,851126,927,0002,998,0002,514,944stderr
8Apr 28, 2026 07:584,480149,314,772126,950,0002,998,0002,510,848stderr
9Apr 28, 2026 07:584,484143,966,791128,063,0002,000,0002,519,040stderr