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 04:59Yuriy LyfenkoYuriy LyfenkoScore: 6,223Success
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 04:596,174886,175,194154,835,00024,225,00033,746,944
2Sep 21, 2021 04:596,181878,918,476149,892,00029,370,00034,242,560
3Sep 21, 2021 04:596,183861,573,351150,615,00028,688,00033,808,384
4Sep 21, 2021 04:596,188864,517,673140,327,00039,138,00034,250,752
5Sep 21, 2021 04:596,189882,800,557144,955,00034,513,00034,426,880
6Sep 21, 2021 04:596,190871,533,032145,180,00034,333,00033,906,688
7Sep 21, 2021 04:596,223898,917,543149,222,00031,256,00035,016,704
8Sep 21, 2021 04:596,234899,462,128148,463,00032,318,00035,586,048
9Sep 21, 2021 04:596,284911,043,603149,827,00032,395,00035,946,496
10Sep 21, 2021 04:596,4081,019,233,950185,836,574027,463,680
11Sep 21, 2021 04:596,4611,020,845,134187,364,847027,340,800
12Sep 21, 2021 04:596,4631,029,629,205187,412,554027,455,488