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:58Yuriy LyfenkoYuriy LyfenkoScore: 6,209Success
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:585,693474,662,827165,097,108027,455,488
2Sep 22, 2021 03:585,724444,211,031165,990,226027,467,776
3Sep 22, 2021 03:585,726509,023,294166,049,526027,459,584
4Sep 22, 2021 03:586,187387,235,160143,735,00035,692,00033,304,576
5Sep 22, 2021 03:586,192393,910,568157,394,00022,183,00033,894,400
6Sep 22, 2021 03:586,199384,099,182153,073,00026,710,00033,488,896
7Sep 22, 2021 03:586,209373,270,858150,719,00029,334,00034,258,944
8Sep 22, 2021 03:586,211395,777,264151,617,00028,491,00033,984,512
9Sep 22, 2021 03:586,221395,829,318151,190,00029,230,00034,201,600
10Sep 22, 2021 03:586,223378,913,397156,186,00024,272,00033,746,944
11Sep 22, 2021 03:586,249388,421,064155,193,00026,039,00034,168,832
12Sep 22, 2021 03:586,265398,199,918146,325,00035,353,00034,078,720