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 listMay 31, 2023 00:15Martin StensgårdMartin StensgårdScore: 6,914Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 31, 2023 00:156,613471,859,189191,786,504027,451,392
2May 31, 2023 00:156,680466,261,976193,728,647027,451,392
3May 31, 2023 00:156,743491,314,912195,539,671027,451,392
4May 31, 2023 00:156,895416,926,231170,967,00028,994,00033,517,568
5May 31, 2023 00:156,901413,182,914171,106,00029,018,00034,029,568
6May 31, 2023 00:156,912389,027,191167,859,00032,584,00034,263,040
7May 31, 2023 00:156,914415,874,379163,704,00036,809,00033,910,784
8May 31, 2023 00:156,918382,149,538175,662,00024,946,00033,796,096
9May 31, 2023 00:156,944414,151,390177,376,00023,998,00033,873,920
10May 31, 2023 00:156,953394,031,089173,997,00027,634,00033,951,744
11May 31, 2023 00:156,954420,964,123176,600,00025,079,00033,673,216
12May 31, 2023 00:156,973424,039,380172,589,00029,615,00034,234,368