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:10Ilya AniskovetsIlya AniskovetsScore: 6,583Success
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:106,426490,993,461186,341,688027,455,488
2Sep 20, 2021 18:106,426489,833,450186,351,531027,459,584
3Sep 20, 2021 18:106,541402,032,337165,722,00023,972,00033,599,488
4Sep 20, 2021 18:106,553547,065,504190,044,398027,414,528
5Sep 20, 2021 18:106,556374,490,276166,881,00023,236,00033,644,544
6Sep 20, 2021 18:106,582401,591,130157,068,00033,799,00033,964,032
7Sep 20, 2021 18:106,583401,407,569164,073,00026,829,00033,718,272
8Sep 20, 2021 18:106,589404,934,030157,413,00033,660,00034,357,248
9Sep 20, 2021 18:106,591380,815,499157,294,00033,848,00033,759,232
10Sep 20, 2021 18:106,613390,320,604173,353,00018,418,00033,755,136
11Sep 20, 2021 18:106,617407,401,426167,653,00024,251,00033,751,040
12Sep 20, 2021 18:106,666411,204,267165,248,00028,061,00033,976,320