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 26, 2026 04:27Charles CabergsCharles CabergsScore: 4,516Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 04:284,488143,743,812127,166,0003,003,0002,519,040stderr
2Apr 26, 2026 04:284,512148,875,516127,871,0002,996,0002,506,752stderr
3Apr 26, 2026 04:284,513153,369,260127,905,0002,997,0002,510,848stderr
4Apr 26, 2026 04:284,514152,881,139127,921,0002,998,0002,514,944stderr
5Apr 26, 2026 04:284,516149,835,406127,993,0002,999,0002,514,944stderr
6Apr 26, 2026 04:284,516146,219,564128,987,0001,999,0002,338,816stderr
7Apr 26, 2026 04:284,517152,248,871128,015,0003,000,0002,523,136stderr
8Apr 26, 2026 04:284,522150,812,527128,158,0003,003,0002,519,040stderr
9Apr 26, 2026 04:284,524150,813,467128,210,0003,004,0002,523,136stderr