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 04:00Yuriy LyfenkoYuriy LyfenkoScore: 6,281Success
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 04:005,748468,877,956166,691,154027,340,800
2Sep 22, 2021 04:005,800500,286,879168,185,849027,455,488
3Sep 22, 2021 04:005,808464,051,323168,425,115027,451,392
4Sep 22, 2021 04:006,229374,398,774153,084,00027,555,00033,488,896
5Sep 22, 2021 04:006,251374,225,995148,406,00032,868,00033,849,344
6Sep 22, 2021 04:006,264386,869,168157,361,00024,290,00033,636,352
7Sep 22, 2021 04:006,281394,652,960153,498,00028,652,00033,914,880
8Sep 22, 2021 04:006,288399,502,223151,125,00031,232,00033,964,032
9Sep 22, 2021 04:006,289395,146,711154,557,00027,820,00033,980,416
10Sep 22, 2021 04:006,291391,947,216147,122,00035,309,00033,902,592
11Sep 22, 2021 04:006,329402,097,437165,736,00017,797,00033,902,592
12Sep 22, 2021 04:006,332394,698,955158,297,00025,327,00034,676,736