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:22Ilya AniskovetsIlya AniskovetsScore: 6,252Success
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:226,216380,873,215158,920,00021,331,00033,521,664
2Sep 20, 2021 18:226,226376,311,220141,395,00039,170,00033,566,720
3Sep 20, 2021 18:226,228379,975,484150,334,00030,268,00034,136,064
4Sep 20, 2021 18:226,233472,896,979180,749,019027,430,912
5Sep 20, 2021 18:226,238381,451,845150,754,00030,150,00033,714,176
6Sep 20, 2021 18:226,248372,592,811155,148,00026,031,00033,980,416
7Sep 20, 2021 18:226,252396,195,245147,633,00033,688,00034,013,184
8Sep 20, 2021 18:226,267391,841,622148,800,00032,955,00033,878,016
9Sep 20, 2021 18:226,273407,523,596155,770,00026,136,00035,258,368
10Sep 20, 2021 18:226,279404,938,933153,444,00028,642,00034,123,776
11Sep 20, 2021 18:226,301510,675,611182,730,835027,439,104
12Sep 20, 2021 18:226,313561,518,676183,081,350027,439,104