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 listJan 2, 2026 05:41Josu San MartinJosu San MartinScore: 5,236Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 2, 2026 05:415,234179,500,590149,801,0001,997,0002,424,832
2Jan 2, 2026 05:415,235177,645,892150,808,000998,0002,281,472
3Jan 2, 2026 05:415,235175,613,356150,821,000998,0002,281,472
4Jan 2, 2026 05:415,236178,659,684151,849,00002,416,640
5Jan 2, 2026 05:415,236172,846,224150,859,000999,0002,281,472
6Jan 2, 2026 05:415,239174,588,967150,920,000999,0002,281,472
7Jan 2, 2026 05:415,242172,076,542151,009,0001,000,0002,281,472
8Jan 2, 2026 05:415,243175,719,158150,042,0002,000,0002,420,736
9Jan 2, 2026 05:415,297179,771,307153,614,00002,281,472