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:07Yuriy LyfenkoYuriy LyfenkoScore: 6,204Success
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:076,182890,054,849151,766,00027,501,00033,718,272
2Sep 21, 2021 05:076,183878,325,456146,440,00032,874,00033,492,992
3Sep 21, 2021 05:076,185894,575,918145,866,00033,509,00033,845,248
4Sep 21, 2021 05:076,192890,514,985157,245,00022,311,00033,374,208
5Sep 21, 2021 05:076,193883,909,681157,279,00022,316,00033,783,808
6Sep 21, 2021 05:076,200879,031,591145,227,00034,577,00033,816,576
7Sep 21, 2021 05:076,204871,697,860149,596,00030,323,00034,430,976
8Sep 21, 2021 05:076,206893,275,013147,153,00032,811,00033,751,040
9Sep 21, 2021 05:076,233868,479,198148,451,00032,316,00033,374,208
10Sep 21, 2021 05:076,4191,045,422,910186,165,449027,451,392
11Sep 21, 2021 05:076,441963,638,883186,801,302027,451,392
12Sep 21, 2021 05:076,443987,757,300186,835,793027,451,392