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 listSep 14, 2024 07:13Daan de GraafDaan de GraafScore: 7,218Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 14, 2024 07:137,172412,576,354180,317,00027,662,00033,939,456
2Sep 14, 2024 07:137,176392,912,595176,250,00031,864,00033,792,000
3Sep 14, 2024 07:137,189407,760,773173,895,00034,581,00034,009,088
4Sep 14, 2024 07:137,191422,879,214177,158,00031,382,00034,271,232
5Sep 14, 2024 07:137,218416,266,893179,861,00029,468,00033,976,320
6Sep 14, 2024 07:137,227405,855,539177,804,00031,786,00033,677,312
7Sep 14, 2024 07:137,241417,504,772176,470,00033,519,00034,234,368
8Sep 14, 2024 07:137,245403,227,512179,793,00030,302,00033,988,608
9Sep 14, 2024 07:137,259414,609,347188,296,00022,214,00033,558,528