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 listFeb 26, 2026 03:48Josu San MartinJosu San MartinScore: 3,777Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 26, 2026 03:483,776130,844,196108,513,0001,004,0002,535,424
2Feb 26, 2026 03:483,777136,824,969108,516,0001,004,0002,420,736
3Feb 26, 2026 03:483,777129,457,371109,524,00002,273,280
4Feb 26, 2026 03:483,777136,129,592109,528,00002,424,832
5Feb 26, 2026 03:483,777124,976,770108,526,0001,004,0002,523,136
6Feb 26, 2026 03:483,777133,413,933109,537,00002,424,832
7Feb 26, 2026 03:483,777136,288,625107,553,0001,991,0002,424,832
8Feb 26, 2026 03:483,778132,416,668109,552,00002,420,736
9Feb 26, 2026 03:483,779132,128,013108,579,0001,005,0002,535,424