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:52Yuriy LyfenkoYuriy LyfenkoScore: 6,440Success
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:526,073457,804,274176,115,807027,455,488
2Sep 22, 2021 03:526,080510,583,766176,323,514027,451,392
3Sep 22, 2021 03:526,136529,302,005177,956,171027,451,392
4Sep 22, 2021 03:526,418395,226,010158,504,00027,610,00033,890,304
5Sep 22, 2021 03:526,435392,166,863153,860,00032,757,00033,701,888
6Sep 22, 2021 03:526,436398,172,489154,715,00031,941,00033,906,688
7Sep 22, 2021 03:526,440404,513,961157,334,00029,436,00034,115,584
8Sep 22, 2021 03:526,445392,814,051155,084,00031,812,00033,910,784
9Sep 22, 2021 03:526,450385,530,878161,214,00025,835,00033,579,008
10Sep 22, 2021 03:526,452396,235,041162,031,00025,088,00033,849,344
11Sep 22, 2021 03:526,453399,048,663161,155,00025,992,00034,111,488
12Sep 22, 2021 03:526,487409,660,450164,734,00023,381,00033,718,272