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 03:25Yuriy 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 03:255,704436,074,496165,413,524027,459,584
2Sep 22, 2021 03:255,735453,290,338166,308,229027,455,488
3Sep 22, 2021 03:255,771474,522,500167,351,933027,467,776
4Sep 22, 2021 03:256,255387,290,105155,491,00025,915,00033,492,992
5Sep 22, 2021 03:256,268395,527,945156,855,00024,930,00033,931,264
6Sep 22, 2021 03:256,270370,872,484153,232,00028,603,00034,263,040
7Sep 22, 2021 03:256,281381,420,188155,241,00026,908,00034,172,928
8Sep 22, 2021 03:256,282394,222,875146,920,00035,260,00034,373,632
9Sep 22, 2021 03:256,295390,406,461152,131,00030,426,00033,976,320
10Sep 22, 2021 03:256,299394,962,931153,943,00028,736,00034,013,184
11Sep 22, 2021 03:256,300399,112,487151,582,00031,119,00034,275,328
12Sep 22, 2021 03:256,318374,717,970144,647,00038,572,00035,291,136