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 29, 2026 08:37Charles CabergsCharles CabergsScore: 3,823Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 08:373,822124,653,193108,858,0001,997,0002,338,816
2Apr 29, 2026 08:373,823129,137,318108,861,0002,015,0002,514,944
3Apr 29, 2026 08:373,823127,716,248107,886,0002,996,0002,510,848
4Apr 29, 2026 08:373,823128,877,905107,887,0002,996,0002,514,944
5Apr 29, 2026 08:373,823126,217,482109,885,000998,0002,510,848
6Apr 29, 2026 08:373,825126,475,895107,934,0002,998,0002,519,040
7Apr 29, 2026 08:373,826125,500,087107,959,0002,998,0002,510,848
8Apr 29, 2026 08:373,831128,501,493108,097,0003,002,0002,338,816
9Apr 29, 2026 08:373,831133,030,362108,105,0003,002,0002,506,752