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:46Martin StensgårdMartin StensgårdScore: 7,386Success
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:466,366505,526,700184,605,757027,447,296
2May 31, 2023 00:466,455511,301,396187,194,175027,439,104
3May 31, 2023 00:466,459478,363,536187,307,090027,443,200
4May 31, 2023 00:467,371415,734,001179,133,00034,639,00033,976,320
5May 31, 2023 00:467,383432,654,192182,082,00032,014,00033,964,032
6May 31, 2023 00:467,386429,958,094177,999,00036,186,00034,373,632
7May 31, 2023 00:467,386417,009,320183,877,00030,309,00034,226,176
8May 31, 2023 00:467,386431,022,137182,469,00031,733,00033,857,536
9May 31, 2023 00:467,392416,787,240185,797,00028,584,00033,644,544
10May 31, 2023 00:467,405429,117,082183,781,00030,963,00034,242,560
11May 31, 2023 00:467,411426,744,339184,499,00030,412,00034,000,896
12May 31, 2023 00:467,412424,223,433183,656,00031,282,00034,242,560