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 21, 2021 05:44Yuriy LyfenkoYuriy LyfenkoScore: 6,230Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 21, 2021 05:446,201368,707,135148,683,00031,143,00033,898,496
2Sep 21, 2021 05:446,207386,752,253148,012,00032,002,00033,472,512
3Sep 21, 2021 05:446,209394,626,996149,040,00031,008,00033,882,112
4Sep 21, 2021 05:446,211359,551,932145,063,00035,048,00033,370,112
5Sep 21, 2021 05:446,219399,902,850152,688,00027,668,00034,328,576
6Sep 21, 2021 05:446,219369,389,644145,075,00035,288,00033,902,592
7Sep 21, 2021 05:446,230392,285,565150,212,00030,448,00033,943,552
8Sep 21, 2021 05:446,244393,179,787148,889,00032,192,00033,955,840
9Sep 21, 2021 05:446,278393,288,307150,528,00031,529,00033,718,272
10Sep 21, 2021 05:446,506471,140,061188,661,072027,455,488
11Sep 21, 2021 05:446,534503,508,129189,495,425027,451,392
12Sep 21, 2021 05:446,561559,198,027190,282,115027,447,296