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 20, 2021 19:01Ilya AniskovetsIlya AniskovetsScore: 6,474Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 19:016,395507,158,290185,460,408027,459,584
2Sep 20, 2021 19:016,420466,046,367186,176,772027,451,392
3Sep 20, 2021 19:016,427478,962,592186,372,724027,451,392
4Sep 20, 2021 19:016,455401,060,835153,687,00033,496,00034,246,656
5Sep 20, 2021 19:016,457397,077,620153,751,00033,509,00033,591,296
6Sep 20, 2021 19:016,470393,918,275161,722,00025,917,00033,456,128
7Sep 20, 2021 19:016,474396,966,854159,167,00028,568,00033,939,456
8Sep 20, 2021 19:016,477398,426,823155,683,00032,141,00033,976,320
9Sep 20, 2021 19:016,482378,993,283160,243,00027,734,00034,439,168
10Sep 20, 2021 19:016,487377,449,751160,204,00027,906,00034,009,088
11Sep 20, 2021 19:016,519383,243,391157,040,00032,008,00034,160,640
12Sep 20, 2021 19:016,520401,590,428158,408,00030,659,00033,751,040