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:02Ilya AniskovetsIlya AniskovetsScore: 6,015Success
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:025,753639,014,630166,850,436027,459,584
2Sep 20, 2021 19:025,808513,726,869168,442,357027,455,488
3Sep 20, 2021 19:025,835497,101,684169,223,602027,406,336
4Sep 20, 2021 19:026,001382,575,801141,579,00032,445,00033,947,648
5Sep 20, 2021 19:026,015385,040,294144,186,00030,248,00034,111,488
6Sep 20, 2021 19:026,015363,777,978145,707,00028,730,00033,980,416
7Sep 20, 2021 19:026,015385,888,945145,877,00028,563,00033,640,448
8Sep 20, 2021 19:026,018385,193,381140,813,00033,715,00034,172,928
9Sep 20, 2021 19:026,024362,222,382150,644,00024,061,00033,685,504
10Sep 20, 2021 19:026,025373,444,787135,800,00038,935,00033,808,384
11Sep 20, 2021 19:026,040386,161,605144,621,00030,553,00033,902,592
12Sep 20, 2021 19:026,069383,389,028150,707,00025,293,00033,718,272