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 10:12TudyMTudyMScore: 4,765Success
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 10:174,761155,711,339135,073,0003,001,0002,293,760
2Apr 28, 2026 10:174,763154,485,721136,132,0002,001,0002,363,392
3Apr 28, 2026 10:174,763157,711,712137,151,0001,001,0002,371,584
4Apr 28, 2026 10:174,763155,483,071137,137,0001,001,0002,301,952
5Apr 28, 2026 10:174,765156,993,279136,207,0002,003,0002,375,680
6Apr 28, 2026 10:174,768153,823,888137,281,0001,002,0002,306,048
7Apr 28, 2026 10:174,769153,533,121137,319,0001,002,0002,428,928
8Apr 28, 2026 10:174,769153,702,360137,299,0001,002,0002,359,296
9Apr 28, 2026 10:174,770153,409,004137,345,0001,002,0002,367,488