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 listOct 10, 2021 03:46Yuriy LyfenkoYuriy LyfenkoScore: 5,681Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 10, 2021 03:465,548480,305,320160,898,729027,455,488
2Oct 10, 2021 03:465,555426,271,137161,108,872027,357,184
3Oct 10, 2021 03:465,591505,358,726162,145,717027,463,680
4Oct 10, 2021 03:465,665373,142,208134,886,00029,411,00033,382,400
5Oct 10, 2021 03:465,666353,726,505134,909,00029,416,00033,910,784
6Oct 10, 2021 03:465,668341,468,949132,503,00031,880,00033,378,304
7Oct 10, 2021 03:465,681357,941,829135,435,00029,310,00033,472,512
8Oct 10, 2021 03:465,683373,221,254129,693,00035,104,00033,718,272
9Oct 10, 2021 03:465,697382,843,600134,796,00030,405,00033,980,416
10Oct 10, 2021 03:465,700371,943,171140,922,00024,369,00033,746,944
11Oct 10, 2021 03:465,704374,245,671140,140,00025,288,00033,468,416
12Oct 10, 2021 03:465,739377,449,529136,632,00029,791,00033,714,176