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 22, 2021 14:29Yuriy LyfenkoYuriy LyfenkoScore: 5,877Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 22, 2021 14:295,732488,170,764166,216,608027,340,800
2Sep 22, 2021 14:295,787464,094,431167,829,400027,451,392
3Sep 22, 2021 14:295,834489,554,969169,189,342027,455,488
4Sep 22, 2021 14:295,838380,702,121133,704,00035,590,00033,718,272
5Sep 22, 2021 14:295,850376,842,669144,682,00024,981,00033,947,648
6Sep 22, 2021 14:295,868362,809,043147,685,00022,473,00034,013,184
7Sep 22, 2021 14:295,877385,799,679141,016,00029,420,00034,693,120
8Sep 22, 2021 14:295,879381,007,308141,729,00028,756,00033,914,880
9Sep 22, 2021 14:295,880377,717,721150,004,00020,504,00034,082,816
10Sep 22, 2021 14:295,884382,082,644139,881,00030,754,00034,426,880
11Sep 22, 2021 14:295,893382,385,087143,103,00027,796,00033,955,840
12Sep 22, 2021 14:295,918379,261,939139,509,00032,117,00034,504,704