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 13:04Yuriy LyfenkoYuriy LyfenkoScore: 6,205Success
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 13:045,788476,764,260167,853,875027,451,392
2Sep 22, 2021 13:045,832496,115,923169,119,929027,451,392
3Sep 22, 2021 13:045,846486,400,949169,547,258027,455,488
4Sep 22, 2021 13:046,185380,343,113151,702,00027,675,00033,624,064
5Sep 22, 2021 13:046,196369,125,717142,975,00036,709,00033,873,920
6Sep 22, 2021 13:046,199384,390,564152,025,00027,734,00033,619,968
7Sep 22, 2021 13:046,205378,531,902144,148,00035,795,00033,800,192
8Sep 22, 2021 13:046,213365,949,823152,375,00027,798,00033,685,504
9Sep 22, 2021 13:046,217387,902,970149,075,00031,225,00034,160,640
10Sep 22, 2021 13:046,221366,927,037150,850,00029,558,00033,980,416
11Sep 22, 2021 13:046,223391,722,249143,607,00036,872,00034,095,104
12Sep 22, 2021 13:046,252405,206,485155,099,00026,199,00034,336,768