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:35Ilya AniskovetsIlya AniskovetsScore: 6,631Success
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:346,355474,563,857184,288,844027,455,488
2Sep 20, 2021 18:356,364481,163,225184,567,389027,455,488
3Sep 20, 2021 18:346,375468,585,910184,884,350027,467,776
4Sep 20, 2021 18:356,378484,476,576184,953,849027,459,584
5Sep 20, 2021 18:356,405505,086,947185,746,165027,463,680
6Sep 20, 2021 18:346,448564,022,740186,977,680027,455,488
7Sep 20, 2021 18:346,608399,789,758163,974,00027,670,00033,456,128
8Sep 20, 2021 18:356,609405,282,517166,039,00025,623,00033,710,080
9Sep 20, 2021 18:346,610385,277,931159,899,00031,781,00033,902,592
10Sep 20, 2021 18:346,619380,512,713159,299,00032,651,00033,734,656
11Sep 20, 2021 18:356,621380,175,988161,859,00030,160,00033,439,744
12Sep 20, 2021 18:356,628405,896,427167,414,00024,802,00034,013,184
13Sep 20, 2021 18:346,631401,940,402163,808,00028,488,00033,472,512
14Sep 20, 2021 18:346,639407,251,481161,456,00031,087,00033,849,344
15Sep 20, 2021 18:346,641380,884,789166,702,00025,885,00034,045,952
16Sep 20, 2021 18:346,641392,760,475163,042,00029,551,00033,644,544
17Sep 20, 2021 18:356,647400,882,610165,951,00026,799,00033,845,248
18Sep 20, 2021 18:346,650402,321,620164,274,00028,569,00033,751,040
19Sep 20, 2021 18:356,650407,442,017157,605,00035,240,00034,242,560
20Sep 20, 2021 18:346,651408,714,009162,596,00030,297,00033,984,512
21Sep 20, 2021 18:356,651376,158,629157,625,00035,245,00034,107,392
22Sep 20, 2021 18:356,654402,284,179157,883,00035,085,00033,587,200
23Sep 20, 2021 18:356,655384,521,846167,968,00025,038,00033,644,544
24Sep 20, 2021 18:356,655401,698,617166,157,00026,832,00033,714,176