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 29, 2021 13:37Yuriy LyfenkoYuriy LyfenkoScore: 5,728Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Sep 29, 2021 13:375,547497,270,693160,858,486027,467,776
2Sep 29, 2021 13:375,625510,740,863163,128,715027,451,392
3Sep 29, 2021 13:375,637540,165,803163,462,902027,455,488
4Sep 29, 2021 13:375,718376,277,273140,790,00025,029,00033,488,896
5Sep 29, 2021 13:375,719366,586,429131,509,00034,349,00033,976,320
6Sep 29, 2021 13:375,725371,861,341136,488,00029,538,00034,172,928
7Sep 29, 2021 13:375,728374,836,932140,150,00025,953,00033,595,392
8Sep 29, 2021 13:375,730351,712,472139,345,00026,836,00033,980,416
9Sep 29, 2021 13:375,735375,332,231142,871,00023,456,00034,172,928
10Sep 29, 2021 13:375,740372,483,781135,382,00031,087,00034,144,256
11Sep 29, 2021 13:375,741360,143,538132,220,00034,279,00034,168,832
12Sep 29, 2021 13:375,746347,206,040132,906,00033,722,00034,140,160