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 20, 2021 18:15Ilya AniskovetsIlya AniskovetsScore: 6,301Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 20, 2021 18:156,252528,418,148181,308,503027,459,584
2Sep 20, 2021 18:156,272386,874,668155,014,00026,869,00033,587,200
3Sep 20, 2021 18:156,277388,669,549147,773,00034,252,00033,980,416
4Sep 20, 2021 18:156,285465,829,148182,262,624027,459,584
5Sep 20, 2021 18:156,289386,496,617147,873,00034,503,00034,242,560
6Sep 20, 2021 18:156,297378,486,655147,462,00035,156,00033,755,136
7Sep 20, 2021 18:156,301397,864,781151,605,00031,124,00033,972,224
8Sep 20, 2021 18:156,302387,940,179152,479,00030,293,00033,718,272
9Sep 20, 2021 18:156,314396,214,851157,090,00026,008,00034,111,488
10Sep 20, 2021 18:156,336507,383,980183,749,374027,455,488
11Sep 20, 2021 18:156,369387,079,521162,290,00022,421,00034,373,632
12Sep 20, 2021 18:156,390396,015,207156,315,00028,985,00035,438,592