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:29Yuriy LyfenkoYuriy LyfenkoScore: 6,276Success
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:295,727529,715,870166,085,473027,451,392
2Sep 22, 2021 03:295,738495,197,349166,403,886027,459,584
3Sep 22, 2021 03:295,786462,623,057167,793,715027,459,584
4Sep 22, 2021 03:296,264392,724,605154,825,00026,836,00033,906,688
5Sep 22, 2021 03:296,264364,195,352153,252,00028,417,00033,644,544
6Sep 22, 2021 03:296,265383,554,887146,706,00034,976,00034,168,832
7Sep 22, 2021 03:296,276378,574,259158,719,00023,278,00033,947,648
8Sep 22, 2021 03:296,298388,825,440145,930,00036,724,00035,454,976
9Sep 22, 2021 03:296,301383,117,757153,287,00029,439,00033,906,688
10Sep 22, 2021 03:296,308394,718,676145,193,00037,750,00034,430,976
11Sep 22, 2021 03:296,308387,837,562153,306,00029,639,00033,255,424
12Sep 22, 2021 03:296,327405,053,451156,519,00026,950,00035,848,192