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 20:05Ilya AniskovetsIlya AniskovetsScore: 5,589Success
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 20:055,277468,360,567153,030,566027,455,488
2Sep 21, 2021 20:035,285497,468,452153,260,027027,459,584
3Sep 21, 2021 20:055,336499,259,681154,753,660027,459,584
4Sep 21, 2021 20:055,338468,168,506154,813,311027,459,584
5Sep 21, 2021 20:035,354480,660,008155,272,783027,451,392
6Sep 21, 2021 20:035,374485,427,737155,858,350027,455,488
7Sep 21, 2021 20:035,567368,136,571136,458,00024,999,00033,603,584
8Sep 21, 2021 20:055,573364,427,501130,509,00031,121,00034,004,992
9Sep 21, 2021 20:035,573367,841,944131,503,00030,115,00033,681,408
10Sep 21, 2021 20:035,580367,388,641128,276,00033,549,00033,894,400
11Sep 21, 2021 20:035,585345,198,857131,587,00030,366,00033,832,960
12Sep 21, 2021 20:055,587376,595,008131,633,00030,376,00033,636,352
13Sep 21, 2021 20:035,589366,741,527135,246,00026,842,00033,898,496
14Sep 21, 2021 20:035,593360,650,728136,046,00026,162,00034,172,928
15Sep 21, 2021 20:035,594350,253,557129,385,00032,843,00033,644,544
16Sep 21, 2021 20:035,598375,166,853130,461,00031,868,00033,845,248
17Sep 21, 2021 20:055,598371,117,066129,477,00032,867,00033,996,800
18Sep 21, 2021 20:055,605375,887,691134,588,00027,952,00034,242,560
19Sep 21, 2021 20:055,606368,338,445129,649,00032,911,00034,414,592
20Sep 21, 2021 20:055,615355,703,383131,060,00031,772,00033,943,552
21Sep 21, 2021 20:055,616355,703,958128,320,00034,547,00034,619,392
22Sep 21, 2021 20:055,617368,250,840136,619,00026,273,00033,898,496
23Sep 21, 2021 20:055,643386,481,041136,545,00027,100,00033,640,448
24Sep 21, 2021 20:035,687350,511,023133,936,00030,985,00034,144,256